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

Re: equals sign in unquoted attribute

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 29 Jul 2009 18:33:50 +0000 (UTC)
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Cc: "public-html@w3.org" <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0907291832130.3168@hixie.dreamhostps.com>
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

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:51 UTC