Re: equals sign in unquoted attribute

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