W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2007

[whatwg] Trailing garbage, numbers and conformance

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 5 Apr 2007 17:44:32 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0704051743400.25976@dhalsim.dreamhost.com>
On Thu, 5 Apr 2007, Henri Sivonen wrote:
>
> Common microsyntaxes for numbers allow leading whitespace and allow 
> trailing garbage. I understand why the algorithms for UAs other than 
> conformance checkers might be defined not to fail when there is trailing 
> garbage. However, to help authors catch typos, I think only trailing 
> whitespace should be conforming not just any trailing garbage.

The conformance requirements require the strings to be (e.g. in the case 
of floating point numbers) "valid floating point number", which doesn't 
allow any spaces or non-numeric data, trailing or leading.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 5 April 2007 10:44:32 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:54 UTC