This has been bothering me in 7 for a little bit now. In 8 we no longer need the embed prefix we put in inline css/js.

Just to make it clear I'm talking about this:

<!--//--><![CDATA[//><!--
//--><!]]>

Anyways here's a 1st attempt at it.

I'm pretty sure this will failed some test.

Comments

ericduran’s picture

Status: Active » Needs review

for the testbot

Status: Needs review » Needs work

The last submitted patch, cdata.patch, failed testing.

ericduran’s picture

Status: Needs work » Needs review
StatusFileSize
new4.75 KB

Status: Needs review » Needs work

The last submitted patch, 1541438-remove-cdata-3.patch, failed testing.

ericduran’s picture

Issue tags: +html5

Tagging so I can get so help on moving this forward since I forgot about it.

Technically since we're using the html5 doctype cdata tags are no longer needed, lets remove them.

Niklas Fiekas’s picture

Status: Needs work » Needs review
StatusFileSize
new5.23 KB
new8.28 KB

This patch fixes the failing tests but also touches the filter module. Let's see what new problems that would introduce.

Status: Needs review » Needs work

The last submitted patch, 1541438-cdata-6.patch, failed testing.

ericduran’s picture

Personally I think we should also remove filter_dom_serialize_escape_cdata_element, all cdata is pretty much useless unless you're trying to validate against xhtml.

ericduran’s picture

Issue tags: +ericduran-todo

Tagging and bumping for myself :)

I want to make sure we get this in before Dec :)

ericduran’s picture

Status: Needs work » Needs review
StatusFileSize
new2.66 KB

Ok Lets give this another try.

ericduran’s picture

Latest patch tries to avoid the filter module for now. I really only care about the script tags.

We can come back to the other stuff later.

Status: Needs review » Needs work

The last submitted patch, 1541438-10.patch, failed testing.

ericduran’s picture

Status: Needs work » Needs review
StatusFileSize
new5.04 KB

Ok this should fix this once and for all.

The last submitted patch, drupal-1541438-13.patch, failed testing.

geek-merlin’s picture

Issue summary: View changes
Status: Needs work » Closed (duplicate)

Fixed in #1021622: Improper escaping of CDATA for inline css for css. Please reopen if this is an issue for js still.

quietone’s picture

Issue tags: -ericduran-todo

tag cleanup