[whatwg] Trailing garbage, numbers and conformance
ian at hixie.ch
Thu Apr 5 10:44:32 PDT 2007
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. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg