Re: Parsing: Equals sign in unquoted attributes

On May 30, 2008, at 13:26, Simon Pieters wrote:

> This seems to result in false positives for:
>   <a href=foo?bar=baz>
> ...which is pretty common.

It seems to me (from Philip's data) that making = always silently  
allowed in unquoted attribute values is a bad idea as it would conceal  
the kind of mistakes that would be helpful to reveal to the author  
(attributes running together mostly with the previous one taking loose  
enough strings for the result not to violate datatype constraints). If  
we wanted to allow = in unquoted URIs, we should make the tokenizer  
check if the current attribute is src or href. Do we really want to go  

If we want to reduce author hoop jumping by making the conformance  
definition closer to practice, I suggest we start by allowing <img  
border=0> and <script language=javascript>.

Henri Sivonen

Received on Friday, 30 May 2008 18:24:40 UTC