W3C home > Mailing lists > Public > public-html@w3.org > December 2008

Re: Microsyntax parsing rules for numbers

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 04 Dec 2008 12:52:35 -0500
Message-ID: <493818E3.20202@mit.edu>
To: Simon Pieters <simonp@opera.com>
CC: public-html <public-html@w3.org>

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.  ;)

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

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:40 UTC