<br><br><div class="gmail_quote">On Thu, May 8, 2008 at 11:43 PM, Ian Hickson <ian@hixie.ch> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 30 Apr 2007, Simon Pieters wrote:<br>
><br>
> From <a href="http://forums.whatwg.org/viewtopic.php?t=38" target="_blank">http://forums.whatwg.org/viewtopic.php?t=38</a><br>
><br>
> I can extract two requests.<br>
><br>
> 1. Explain how authors are supposed to "comment" their <script> and<br>
> <style> elements in HTML5. (Post #171.)<br>
><br>
> Something along the following lines could be inserted as a note in the<br>
> syntax section, e.g. after the "CDATA elements can have text, ..."<br>
> paragraph:<br>
><br>
> Old browsers that don't understand the style or script elements<br>
> (introduced in HTML 3.2) will attempt render their contents. However,<br>
> the strings "<!--" and "-->" are part of the CSS syntax, and "<!--" is<br>
> equivalent to "//" in JavaScript, so authors who don't want to reveal<br>
> their style sheets or scripts to users with such browsers can simply<br>
> comment them out. [CSS21] [ECMA262]<br>
><br>
> <style><br>
> <!--<br>
> ...<br>
> --><br>
> </style><br>
><br>
> <script><br>
> <!--<br>
> ...<br>
> //--><br>
> </script><br>
><br>
> (But it is an issue though that ECMAScript 262 still doesn't define the<br>
> <!-- magic.)<br>
<br>
Is there really any need to escape the contents of <script>/<style> at all<br>
these days?<br>
</blockquote><div><br>In order to validate a page as valid HTML/XHTML you need to escape inline <script> when using characters like &.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
> 2. Explain how HTML5 and XHTML5 differ in practice. (Post #187.)<br>
><br>
> e.g. something like <a href="http://wiki.whatwg.org/wiki/HtmlVsXhtml" target="_blank">http://wiki.whatwg.org/wiki/HtmlVsXhtml</a> could be<br>
> included as a non-normative appendix to the spec, or referenced to in<br>
> the HTML vs. XHTML section, or similar.<br>
<br>
I'd rather just leave this to non-normative documentation outside of the<br>
spec, if that's ok. It's easier to update things that aren't in the spec,<br>
and this is the kind of thing where we might well find things we've<br>
missed.<br>
<font color="#888888"><br>
--<br>
Ian Hickson U+1047E )\._.,--....,'``. fL<br>
<a href="http://ln.hixie.ch/" target="_blank">http://ln.hixie.ch/</a> U+263A /, _.. \ _\ ;`._ ,.<br>
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Samuel Santos<br><a href="http://www.samaxes.com/">http://www.samaxes.com/</a>