Index: trunk/phase3/includes/Html.php |
— | — | @@ -389,16 +389,6 @@ |
390 | 390 | # and we'd like consistency and better compression anyway. |
391 | 391 | $key = strtolower( $key ); |
392 | 392 | |
393 | | - # Bug 23769: Blacklist all form validation attributes for now. Current |
394 | | - # (June 2010) WebKit has no UI, so the form just refuses to submit |
395 | | - # without telling the user why, which is much worse than failing |
396 | | - # server-side validation. Opera is the only other implementation at |
397 | | - # this time, and has ugly UI, so just kill the feature entirely until |
398 | | - # we have at least one good implementation. |
399 | | - if ( in_array( $key, array( 'max', 'min', 'pattern', 'required', 'step' ) ) ) { |
400 | | - continue; |
401 | | - } |
402 | | - |
403 | 393 | # Here we're blacklisting some HTML5-only attributes... |
404 | 394 | if ( !$wgHtml5 && in_array( $key, array( |
405 | 395 | 'autocomplete', |
— | — | @@ -415,6 +405,16 @@ |
416 | 406 | continue; |
417 | 407 | } |
418 | 408 | |
| 409 | + # Bug 23769: Blacklist all form validation attributes for now. Current |
| 410 | + # (June 2010) WebKit has no UI, so the form just refuses to submit |
| 411 | + # without telling the user why, which is much worse than failing |
| 412 | + # server-side validation. Opera is the only other implementation at |
| 413 | + # this time, and has ugly UI, so just kill the feature entirely until |
| 414 | + # we have at least one good implementation. |
| 415 | + if ( in_array( $key, array( 'max', 'min', 'pattern', 'required', 'step' ) ) ) { |
| 416 | + continue; |
| 417 | + } |
| 418 | + |
419 | 419 | # See the "Attributes" section in the HTML syntax part of HTML5, |
420 | 420 | # 9.1.2.3 as of 2009-08-10. Most attributes can have quotation |
421 | 421 | # marks omitted, but not all. (Although a literal " is not |