Don't allow boolean HTML5 attribs into XHTML1
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 11 Jun 2010 21:57:20 +0000 (21:57 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 11 Jun 2010 21:57:20 +0000 (21:57 +0000)
commit9fb4b59f35d9b0bdaab451e4ae454c7ce1da0de5
treef274b89a2a5bbc1f8a77efbf9c601bb97f83bd8e
parentb322197caf4b6157c8f11919076c528271038378
Don't allow boolean HTML5 attribs into XHTML1

The code didn't handle the case where a non-associative array was passed
for the attributes, like array( 'autofocus' ) instead of array(
'autofocus' => '' ).  In retrospect, allowing this syntax was a bad
decision and I wish I hadn't.  Associative arrays shouldn't pretend to
be lists.  Probably too much trouble to change it now.
includes/Html.php