W3C home > Mailing lists > Public > public-html@w3.org > May 2008

Parsing: Equals sign in unquoted attributes

From: Simon Pieters <simonp@opera.com>
Date: Fri, 30 May 2008 12:26:28 +0200
To: "public-html@w3.org" <public-html@w3.org>
Message-ID: <op.ubypyeylidj3kv@zcorpandell.linkoping.osa>

The spec made the equals sign a parse error in unquoted attributes in  
order to catch this authoring mistake:

    <p class=="foo">

This seems to result in false positives for:

    <a href=foo?bar=baz>

...which is pretty common. Since the spec bans the " and ' characters in  
unquoted attributes, the above authoring mistake would be cought anyway.  
Therefore, I think that = should be allowed in unquoted attributes, at  
least when it's not the first character.

-- 
Simon Pieters
Opera Software
Received on Friday, 30 May 2008 10:27:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:17 GMT