[whatwg] Parsing: Disallow slashes in unquoted attribute values?

Simon Pieters zcorpan at hotmail.com
Thu Oct 19 14:20:16 PDT 2006


Hi,

If it is desireable that conforming HTML5 documents that use a common subset 
of HTML4 and HTML5 would be valid HTML4 if the doctype was switched, then 
slashes in unquoted attribute values should cause a parse error.

E.g., the snippet:

   <p title=foo//>test</p>

...is equivalent to:

   <p title="foo//">test</p>

...according to the HTML5 parsing algorithm (and goes without parse errors). 
But according to SGML (assuming the HTML4 doctype and the SGML declaration 
for HTML4) it's equivalent to:

   <p title="foo"></p>>test</p>

Regards,
Simon Pieters

_________________________________________________________________
Satsa på en romantisk höst http://www.msn.se/dejting/




More information about the whatwg mailing list