[whatwg] double IDL attributes when reflecting content attributes?
Ian Hickson
ian at hixie.ch
Mon May 9 15:14:54 PDT 2011
On Sun, 30 Jan 2011, Mounir Lamouri wrote:
>
> A few months ago all float attributes changed to double attributes [1].
> I'm wondering why float IDL attributes reflecting content attributes
> moved to double attributes given that the content attributes are still
> following the rules for parsing floating point numbers [2]. So, AFAIUI,
> these double IDL attributes will be limited to single precision floating
> point values so why using the double type instead of the float type?
>
> [1] http://html5.org/tools/web-apps-tracker?from=5372&to=5373
> [2] http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#rules-for-parsing-floating-point-number-values
The rules for parsing floating point numbers now go to +/- 2^1024, which
hopefully addresses this problem.
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list