W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2006

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

From: Simon Pieters <zcorpan@hotmail.com>
Date: Thu, 19 Oct 2006 21:20:16 +0000
Message-ID: <BAY109-F7AF25BC0BD27114E71CFAB40C0@phx.gbl>

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>&gt;test</p>

Simon Pieters

Satsa p? en romantisk h?st http://www.msn.se/dejting/
Received on Thursday, 19 October 2006 14:20:16 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:48 UTC