X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHtml.php;h=b46ea81c5e6b78ab90b9ac35aa56589bd3328320;hb=78f9b210bf3fdbd48daaae309dad2d9d07a1f2f4;hp=0b6b6556aca67934823f5c9650a9169ed0fd480d;hpb=9cf4b7ecee11202d9480e47f0565c8203a612b4b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Html.php b/includes/Html.php index 0b6b6556ac..b46ea81c5e 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -485,22 +485,6 @@ class Html { // and better compression anyway. $key = strtolower( $key ); - // Bug 23769: Blacklist all form validation attributes for now. Current - // (June 2010) WebKit has no UI, so the form just refuses to submit - // without telling the user why, which is much worse than failing - // 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. - - // 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, [ 'max', 'min', 'pattern', 'required' ] ) - || $key === 'step' && $value !== 'any' ) { - continue; - } - // https://www.w3.org/TR/html401/index/attributes.html ("space-separated") // https://www.w3.org/TR/html5/index.html#attributes-1 ("space-separated") $spaceSeparatedListAttributes = [