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 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:55 UTC