Index: branches/wmf-deployment/includes/Html.php |
— | — | @@ -195,6 +195,13 @@ |
196 | 196 | * @return array An array of attributes functionally identical to $attribs |
197 | 197 | */ |
198 | 198 | private static function dropDefaults( $element, $attribs ) { |
| 199 | + # Don't bother doing anything if we aren't outputting HTML5; it's too |
| 200 | + # much of a pain to maintain two sets of defaults. |
| 201 | + global $wgHtml5; |
| 202 | + if ( !$wgHtml5 ) { |
| 203 | + return $attribs; |
| 204 | + } |
| 205 | + |
199 | 206 | static $attribDefaults = array( |
200 | 207 | 'area' => array( 'shape' => 'rect' ), |
201 | 208 | 'button' => array( |