Re: Microsyntax parsing rules for numbers

Simon Pieters wrote:
>> So <input width="500f"> will look just like <input> in Mozilla 
>> (certainly does over here).
> 
> So does <input width=500> since width isn't an attribute for input. But 
> <img width=1a> and <img> (in quirks mode) render the same (and different 
> from <img width=1>).

Er, good point.  I just looked at the attribute parsing, not the usage. 
  Need an <input type="image"> to see the width attribute there in 
action, of course.

But yes, "1a" is ignored any time we're parsing an integer, while "1g" 
is parsed as "1".  I don't think we want to spec this behavior.  ;)

-Boris

Received on Thursday, 4 December 2008 17:53:44 UTC