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

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