[whatwg] double IDL attributes when reflecting content attributes?

Mounir Lamouri mounir.lamouri at gmail.com
Sun Jan 30 13:56:07 PST 2011


Hi,

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

Thanks,
--
Mounir


More information about the whatwg mailing list