W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2010

[whatwg] Allowing ">" in attribute values

From: Julian Reschke <julian.reschke@gmx.de>
Date: Thu, 24 Jun 2010 11:41:22 +0200
Message-ID: <4C232842.7010903@gmx.de>
On 24.06.2010 10:00, Henri Sivonen wrote:
> "Benjamin M. Schwartz"<bmschwar at fas.harvard.edu>  wrote:
>
>> The HTML5 spec appears to allow ">" inside an attribute value.  For
>> example, the following page (note the body tag) passes the
>> experimental
>> HTML5 validator at w3c.org:
>>
>> <!DOCTYPE HTML><html><head><title></title></head>
>> <body class="3>2">
>> </body></html>
>>
>> I think ">" should be disallowed inside attribute values.   It is
>> disallowed in XHTML [1].  It is disallowed in HTML 4.01 [2].
>> Disallowing
>> it in HTML5 would avoid unnecessary divergence, and also sometimes
>> simplify parsing.
>
> Actually, disallowing it would require adding a switch-case to check for '>'. Not checking for it is simpler.
>
> I think we shouldn't disallow harmless stuff just because XML or HTML 4.01 did.

XML doesn't disallow it.

Best regards, Julian
Received on Thursday, 24 June 2010 02:41:22 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:24 UTC