[Webkit-unassigned] [Bug 99115] Constraint Validation API tooLong property incorrect with prefilled value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 17 08:05:42 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=99115


Kent Tamura <tkent at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX
                 CC|                            |tkent at chromium.org




--- Comment #1 from Kent Tamura <tkent at chromium.org>  2012-10-17 08:06:34 PST ---
(In reply to comment #0)
> Per the spec (http://www.whatwg.org/specs/web-apps/current-work/#constraint-validation-api) a form control's validity.tooLong property should be "true if the element's value is longer than the provided maximum length; false otherwise."

Don't forget that green boxes are non-normative.  We need to refer to other places for normative definition.

See http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#limiting-user-input-length:-the-maxlength-attribute
> Constraint validation: If an element has a maximum allowed value length, its dirty value flag is true, its value was last changed by a user edit (as opposed to a change made by a script), and the code-unit length of the element's value is greater than the element's maximum allowed value length, then the element is suffering from being too long.

The input element is not dirty and not user-edited in this case.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list