Re: equals sign in unquoted attribute

On Wed, 29 Jul 2009, Lachlan Hunt wrote:
> > > 
> > > <a href=/advanced_search?hl=en>Advanced Search</a>
> 
> Do you have any data to support either position, from any of the 
> previous stats you've collected?

No. We should probably look into this. Henri, do you have any stats about 
whether this error comes up more for false positives than actual bugs?


> An alternative solution to consider is to make whitespace before 
> unquoted attributes invalid.  This much simpler than the solution 
> suggested by Simon, and has the advantage of working as intended for 
> both cases above.  It would make the following invalid:
> 
> <div class= foo>
> 
> But I don't think that would be a significant loss.  From my experience, 
> the vast majority of authors don't put space before or after the equals 
> sign anyway.  However, doing so could still be valid for quoted 
> attributes though:
> 
> <div class= "foo">

I think this is too unintuitive to be a good idea.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 29 July 2009 18:34:26 UTC