]> source.dussan.org Git - jquery.git/commitdiff
Update boolean attribute list to contain all boolean attributes listed in w3c
authortimmywil <tim.willison@thisismedium.com>
Thu, 5 May 2011 18:37:59 +0000 (14:37 -0400)
committertimmywil <tim.willison@thisismedium.com>
Thu, 5 May 2011 18:37:59 +0000 (14:37 -0400)
src/attributes.js

index a058a82b9012d80125c302dce4ee61e011ae9cb0..10a99616d021fd9baaa1f5d9eea074a235460f65 100644 (file)
@@ -6,7 +6,7 @@ var rclass = /[\n\t\r]/g,
        rtype = /^(?:button|input)$/i,
        rfocusable = /^(?:button|input|object|select|textarea)$/i,
        rclickable = /^a(?:rea)?$/i,
-       rboolean = /^(?:autobuffer|autofocus|autoplay|async|checked|compact|controls|declare|defer|disabled|formnovalidate|ismap|loop|multiple|noresize|noshade|nowrap|novalidate|open|pubdate|readonly|required|reversed|seamless|selected)$/i,
+       rboolean = /^(?:autobuffer|autofocus|autoplay|async|checked|compact|controls|declare|defaultmuted|defaultselected|defer|disabled|draggable|formnovalidate|hidden|indeterminate|ismap|itemscope|loop|multiple|muted|nohref|noresize|noshade|nowrap|novalidate|open|pubdate|readonly|required|reversed|scoped|seamless|selected|spellcheck|truespeed|visible)$/i,
        rinvalidChar = /\:/,
        formHook, boolHook;