[whatwg] Common Subset
Alexey Feldgendler
alexey at feldgendler.ru
Sat Dec 9 07:19:06 PST 2006
On Sat, 09 Dec 2006 18:50:58 +0600, Lachlan Hunt
<lachlan.hunt at lachy.id.au> wrote:
>> The HTML5 spec could somehow officially bless CDATA only when used like
>> this:
>> <script>//<![CDATA[
>> ...
>> //]]></script>
>> It would not harm because it is already interoperable.
> It's technically already allowed because script and style elements are
> defined to contain CDATA. So basically any string of text that doesn't
> include '</' before the end tag is valid.
Oops. My bad. Okay then, it's good that we have a way to write scripts in
the common subset of HTML5 and XHTML5 without escaping every < and &.
> Only Opera (AFAIK) even implemented support for CDATA sections in HTML.
> So although that may suggest that they can be supported by browsers
> without breaking anything, their use wouldn't be backwards compatible
> with other legacy browsers, so they have to be forbidden.
I'm not saying they should be allowed outside of <script> and <style>.
--
Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com
More information about the whatwg
mailing list