W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > May 2011

[Bug 12797] Define default maxlength for input

From: <bugzilla@jessica.w3.org>
Date: Fri, 27 May 2011 17:15:48 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QQ0dY-0004AC-Lk@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12797

Aryeh Gregor <Simetrical+w3cbug@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Simetrical+w3cbug@gmail.com

--- Comment #1 from Aryeh Gregor <Simetrical+w3cbug@gmail.com> 2011-05-27 17:15:48 UTC ---
"""
The maxLength IDL attribute must reflect the maxlength content attribute,
limited to only non-negative numbers.
"""
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#dom-input-maxlength

"""
If a reflecting IDL attribute has a signed integer type (long) that is limited
to only non-negative numbers then, on getting, the content attribute must be
parsed according to the rules for parsing non-negative integers, and if that is
successful, and the value is in the range of the IDL attribute's type, the
resulting value must be returned. If, on the other hand, it fails or returns an
out of range value, or if the attribute is absent, the default value must be
returned instead, or &#8722;1 if there is no default value.
"""
http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#reflect

There is no default value specified, so by the wording of the rules for
reflection, a get must return -1 in lieu of the default value.  So effectively,
the default value is -1.  Do you want the default value to be changed, or are
you now okay with the status quo?

-- 
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 Friday, 27 May 2011 17:15:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:10 UTC