DescriptionStricter parsing for rows/cols attribute on textarea
According to the latest spec "If the cols attribute is specified, its value
must be a valid non-negative integer greater than zero. If applying the rules
for parsing non-negative integers to the attribute's value results in a number
greater than zero, then the element's character width is that value; otherwise,
it is 20."
The rows attribute is similar but the default value is 2.
With this patch parsing is more strict and above rules are honored.
This was showing as failures here, fixed with this patch:
http://w3c-test.org/html/dom/reflection-forms.html
Behavior matches Firefox.
Spec reference:
https://html.spec.whatwg.org/multipage/forms.html#attr-textarea-cols
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187282
Patch Set 1 #Patch Set 2 : Remove unrelated change #Patch Set 3 : Add tests #Patch Set 4 : Add some subtests I forgot... #
Total comments: 1
Patch Set 5 : Fix test result #
Total comments: 2
Patch Set 6 : Patch for landing #
Messages
Total messages: 14 (5 generated)
|