[whatwg] Common number formats

Henri Sivonen hsivonen at iki.fi
Tue Apr 25 04:27:56 PDT 2006


(Again, from the document conformance point of view:)

I assume number formats in attributes consistently do not allow  
whitespace before and after. Am I right?

I assume that an explicit + sign is always forbidden. Correct?

Is the - sign forbidden in front of zero? (Would be logical  
considering that the explicit plus is forbidden.)

Most definitions of integers allow leading zeros but the width and  
height for canvas don't. Is this intentional?

I guess floats allow leading zeros as well. Correct?

Do percentages allow leading zeros? (Leading zeros are harmless in  
Firefox, Opera and Safari, at least.)

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/





More information about the whatwg mailing list