Index: trunk/phase3/HISTORY |
— | — | @@ -192,10 +192,7 @@ |
193 | 193 | * The default output format is now HTML 5 instead of XHTML 1.0 Transitional. |
194 | 194 | This can be disabled by setting $wgHtml5 = false;. Specific features enabled |
195 | 195 | if HTML 5 is used: |
196 | | -** New HTML 5 input attributes allow JavaScript-free input validation in some |
197 | | - cutting-edge browsers. E.g., some inputs will be autofocused, users will |
198 | | - not be allowed to submit forms with certain types of invalid values (like |
199 | | - numbers outside the permitted ranges), etc. |
| 196 | +** Some extra inputs will be autofocused, in supporting browsers. |
200 | 197 | ** The summary attribute has been removed from tables of contents. summary is |
201 | 198 | obsolete in HTML 5 and wasn't useful here anyway. |
202 | 199 | ** Unnecessary type="" attribute removed for CSS and JS. |
Index: trunk/phase3/includes/Html.php |
— | — | @@ -370,6 +370,16 @@ |
371 | 371 | # and we'd like consistency and better compression anyway. |
372 | 372 | $key = strtolower( $key ); |
373 | 373 | |
| 374 | + # Bug 23769: Blacklist all form validation attributes for now. Current |
| 375 | + # (June 2010) WebKit has no UI, so the form just refuses to submit |
| 376 | + # without telling the user why, which is much worse than failing |
| 377 | + # server-side validation. Opera is the only other implementation at |
| 378 | + # this time, and has ugly UI, so just kill the feature entirely until |
| 379 | + # we have at least one good implementation. |
| 380 | + if ( in_array( $key, array( 'max', 'min', 'pattern', 'required', 'step' ) ) ) { |
| 381 | + continue; |
| 382 | + } |
| 383 | + |
374 | 384 | # See the "Attributes" section in the HTML syntax part of HTML5, |
375 | 385 | # 9.1.2.3 as of 2009-08-10. Most attributes can have quotation |
376 | 386 | # marks omitted, but not all. (Although a literal " is not |