Index: branches/REL1_16/phase3/includes/Html.php |
— | — | @@ -329,6 +329,16 @@ |
330 | 330 | # and we'd like consistency and better compression anyway. |
331 | 331 | $key = strtolower( $key ); |
332 | 332 | |
| 333 | + # Bug 23769: Blacklist all form validation attributes for now. Current |
| 334 | + # (June 2010) WebKit has no UI, so the form just refuses to submit |
| 335 | + # without telling the user why, which is much worse than failing |
| 336 | + # server-side validation. Opera is the only other implementation at |
| 337 | + # this time, and has ugly UI, so just kill the feature entirely until |
| 338 | + # we have at least one good implementation. |
| 339 | + if ( in_array( $key, array( 'max', 'min', 'pattern', 'required', 'step' ) ) ) { |
| 340 | + continue; |
| 341 | + } |
| 342 | + |
333 | 343 | # See the "Attributes" section in the HTML syntax part of HTML5, |
334 | 344 | # 9.1.2.3 as of 2009-08-10. Most attributes can have quotation |
335 | 345 | # marks omitted, but not all. (Although a literal " is not |
Index: branches/REL1_16/phase3/RELEASE-NOTES |
— | — | @@ -275,10 +275,7 @@ |
276 | 276 | * The default output format is now HTML 5 instead of XHTML 1.0 Transitional. |
277 | 277 | This can be disabled by setting $wgHtml5 = false;. Specific features enabled |
278 | 278 | if HTML 5 is used: |
279 | | -** New HTML 5 input attributes allow JavaScript-free input validation in some |
280 | | - cutting-edge browsers. E.g., some inputs will be autofocused, users will |
281 | | - not be allowed to submit forms with certain types of invalid values (like |
282 | | - numbers outside the permitted ranges), etc. |
| 279 | +** Some extra inputs will be autofocused, in supporting browsers. |
283 | 280 | ** The summary attribute has been removed from tables of contents. summary is |
284 | 281 | obsolete in HTML 5 and wasn't useful here anyway. |
285 | 282 | ** Unnecessary type="" attribute removed for CSS and JS. |