X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSanitizer.php;h=8422d9a7934ec6529b88cb7ab08bd33cd536acbf;hb=aee072efe2f6c93a039697fc5340d64d0c0f36b7;hp=2340cd94495e750e484116eabe002a92ef99f32e;hpb=e8e8670e7ce6837e0331c8565cd390fca04152e5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index 2340cd9449..8422d9a793 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -1276,9 +1276,10 @@ class Sanitizer { # Double-quoted return $set[3]; } elseif ( !isset( $set[2] ) ) { - # In XHTML, attributes must have a value. - # For 'reduced' form, return explicitly the attribute name here. - return $set[1]; + # In XHTML, attributes must have a value so return an empty string. + # See "Empty attribute syntax", + # http://www.w3.org/TR/html5/syntax.html#syntax-attribute-name + return ""; } else { throw new MWException( "Tag conditions not met. This should never happen and is a bug." ); }