Do not treat translate attribtues as boolean values
authorAndrew Schmadel <aschmadel@learningobjects.com>
Mon, 23 Jun 2014 16:21:46 +0000 (12:21 -0400)
committerAndrew Schmadel <aschmadel@learningobjects.com>
Mon, 23 Jun 2014 16:21:46 +0000 (12:21 -0400)
src/htmlminifier.js

index 03bde5a..e694a27 100644 (file)
   }
 
   function isBooleanAttribute(attrName) {
-    return (/^(?:allowfullscreen|async|autofocus|autoplay|checked|compact|controls|declare|default|defaultchecked|defaultmuted|defaultselected|defer|disabled|draggable|enabled|formnovalidate|hidden|indeterminate|inert|ismap|itemscope|loop|multiple|muted|nohref|noresize|noshade|novalidate|nowrap|open|pauseonexit|readonly|required|reversed|scoped|seamless|selected|sortable|spellcheck|translate|truespeed|typemustmatch|visible)$/).test(attrName);
+    return (/^(?:allowfullscreen|async|autofocus|autoplay|checked|compact|controls|declare|default|defaultchecked|defaultmuted|defaultselected|defer|disabled|draggable|enabled|formnovalidate|hidden|indeterminate|inert|ismap|itemscope|loop|multiple|muted|nohref|noresize|noshade|novalidate|nowrap|open|pauseonexit|readonly|required|reversed|scoped|seamless|selected|sortable|spellcheck|truespeed|typemustmatch|visible)$/).test(attrName);
   }
 
   function isUriTypeAttribute(attrName, tag) {