[Bug 10354] What happens if you do an IDL get on size for <select size=0>? Does it return 0 or 1?

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10354


Ms2ger <Ms2ger@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Ms2ger@gmail.com




--- Comment #2 from Ms2ger <Ms2ger@gmail.com>  2010-08-14 16:41:30 ---
"Zero is not allowed" isn't normative text. The IDL attribute should return 0.
(See
<http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#rules-for-parsing-non-negative-integers>,
which doesn't fail on 0, so

> ... must first be parsed according to the rules for parsing non-negative
> integers [and] the resulting value must be returned.

applies.) It probably makes sense to change

> and if that is successful, and the value is in the range of the IDL
> attribute's type,

to

> and if that is successful, the value is not zero and in the range of the IDL
> attribute's type,

or something like that.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 14 August 2010 16:41:35 UTC