summaryrefslogtreecommitdiff
path: root/includes/Html.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2013-03-05 09:06:02 +0100
committerPierre Schmitz <pierre@archlinux.de>2013-03-05 09:06:02 +0100
commit0edd6983ba69e8195fa7cade96eca27df9ebf237 (patch)
treee0a5a8ee7fac4c7ce9d308419d13dbca13a7a609 /includes/Html.php
parent8ef4b96a9b23b2cfc0eed4da0d6d324da9f9da2f (diff)
Update to MediaWiki 1.20.3
Diffstat (limited to 'includes/Html.php')
-rw-r--r--includes/Html.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/includes/Html.php b/includes/Html.php
index 83af24af..b33d6fbb 100644
--- a/includes/Html.php
+++ b/includes/Html.php
@@ -479,7 +479,13 @@ class Html {
# server-side validation. Opera is the only other implementation at
# this time, and has ugly UI, so just kill the feature entirely until
# we have at least one good implementation.
- if ( in_array( $key, array( 'max', 'min', 'pattern', 'required', 'step' ) ) ) {
+
+ # As the default value of "1" for "step" rejects decimal
+ # numbers to be entered in 'type="number"' fields, allow
+ # the special case 'step="any"'.
+
+ if ( in_array( $key, array( 'max', 'min', 'pattern', 'required' ) ) ||
+ $key === 'step' && $value !== 'any' ) {
continue;
}