W3C home > Mailing lists > Public > public-html@w3.org > July 2009

Re: equals sign in unquoted attribute

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 14 Jul 2009 16:39:57 +0200
Message-ID: <4A5C98BD.10705@lachy.id.au>
To: Ian Hickson <ian@hixie.ch>
Cc: Simon Pieters <simonp@opera.com>, "public-html@w3.org" <public-html@w3.org>
Ian Hickson wrote:
> On Fri, 19 Jun 2009, Simon Pieters wrote:
>> I think the spec should allow = in unquoted attribute values again,
>> because it seems annoying to have to quote href attributes when the URL
>> has an =.
>>
>> The authoring mistakes that banning the = was intended to catch are
>> almost always caught by other errors, I think.
>
> <img src=foo.jpeg alt= class=photo>

Sure, there are edge cases that occur with almost every conformance 
decision we make.  It's a trade off.  It just depends whether you think 
it's more valuable to catch errors like that, or to allow something much 
more common like this, copied from google.com:

<a href=/advanced_search?hl=en>Advanced Search</a>

Or maybe we can find a solution that works for both scenarios.  I'm not 
sure what might work, though, at least not without making the parsing 
much more complex.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Tuesday, 14 July 2009 14:40:41 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:48 UTC