W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 2004

Re: XHTML1: What's wrong with -- in script/style?

From: Justin Wood <jw6057@bacon.qcc.mass.edu>
Date: Fri, 16 Jul 2004 15:02:47 -0400
Message-ID: <40F82657.6090102@bacon.qcc.mass.edu>
To: www-html-editor@w3.org

Bjoern Hoehrmann wrote:

>Dear HTML Working Group,
>
>  Appendix C.4 of the XHTML 1.0 Second Edition Recommendation states
>
>[...]
>  Use external style sheets if your style sheet uses < or & or ]]> or
>  --. Use external scripts if your script uses < or & or ]]> or --.
>[...]
>
>I do not understand what the problem with -- in those elements is, as
>far as I can tell, there is no difference for e.g.
>
>  <style ...>/*--*/</style>
>
>or
>
>  <p style="/*--*/">...</p>
>
>in HTML versus XHTML, the specification seems thus in error in this
>regard.
>
>regards.
>
>
>  
>
iirc, script and style assumes <!--  ...   -->  comment syntax, which 
means that -- in a proper SGML (XML) parser, would mark the rest of the 
tag bad (comment closes at -- not the > technically, with everything 
between discarded).

~Justin Wood
Received on Friday, 16 July 2004 15:03:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:51 UTC