https://bugzilla.wikimedia.org/show_bug.cgi?id=40585

--- Comment #1 from Richard Guk <richardg...@yahoo.com> 2012-09-28 16:26:51 UTC 
---
This seems to have been caused by the fix to bug 23769.

The bugfix in Html::expandAttributes() causes the step attribute to be silently
dropped. But the current W3C standard states that a missing step implies
step="1", which is more restrictive than the step="any" correctly supplied by
HTMLForm::getInputHTML() when the internal type == 'float'.

So an input element with type="number" causes validation error in Chrome when
non-integer values specified, even though the input type is internally
specified as a float.

* step attribute for float input set to 'any':
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/HTMLForm.php#l1583

* step attribute dropped:
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/Html.php#l467

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to