dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
2cf004c
)
Merge "Html::closeElement: Don't omit closing tags."
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Fri, 8 Aug 2014 00:43:31 +0000
(
00:43
+0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Fri, 8 Aug 2014 00:43:31 +0000
(
00:43
+0000)
includes/Html.php
patch
|
blob
|
history
diff --git
a/includes/Html.php
b/includes/Html.php
index
46bee95
..
cb98009
100644
(file)
--- a/
includes/Html.php
+++ b/
includes/Html.php
@@
-233,25
+233,8
@@
class Html {
* @return string A closing tag, if required
*/
public static function closeElement( $element ) {
- global $wgWellFormedXml;
-
$element = strtolower( $element );
- // Reference:
- // http://www.whatwg.org/html/syntax.html#optional-tags
- if ( !$wgWellFormedXml && in_array( $element, array(
- 'html',
- 'head',
- 'body',
- 'li',
- 'dt',
- 'dd',
- 'tr',
- 'td',
- 'th',
- ) ) ) {
- return '';
- }
return "</$element>";
}