Index: trunk/phase3/includes/Html.php |
— | — | @@ -137,7 +137,7 @@ |
138 | 138 | * tag (and the self-closing / in XML mode for empty elements). |
139 | 139 | */ |
140 | 140 | public static function openElement( $element, $attribs = array() ) { |
141 | | - global $wgHtml5, $wgWellFormedXml; |
| 141 | + global $wgHtml5; |
142 | 142 | $attribs = (array)$attribs; |
143 | 143 | # This is not required in HTML5, but let's do it anyway, for |
144 | 144 | # consistency and better compression. |
— | — | @@ -376,8 +376,9 @@ |
377 | 377 | "\t" => '	' |
378 | 378 | ); |
379 | 379 | if ( $wgWellFormedXml ) { |
380 | | - # '<' must be escaped in attributes for XML for some |
381 | | - # reason, per spec: http://www.w3.org/TR/xml/#NT-AttValue |
| 380 | + # This is allowed per spec: <http://www.w3.org/TR/xml/#NT-AttValue> |
| 381 | + # But reportedly it breaks some XML tools? FIXME: is this |
| 382 | + # really true? |
382 | 383 | $map['<'] = '<'; |
383 | 384 | } |
384 | 385 | $ret .= " $key=$quote" . strtr( $value, $map ) . $quote; |