(element, name)
| 3157 | }; |
| 3158 | |
| 3159 | function getBooleanAttrName(element, name) { |
| 3160 | // check dom last since we will most likely fail on name |
| 3161 | var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()]; |
| 3162 | |
| 3163 | // booleanAttr is here twice to minimize DOM access |
| 3164 | return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr; |
| 3165 | } |
| 3166 | |
| 3167 | function getAliasedAttrName(name) { |
| 3168 | return ALIASED_ATTR[name]; |
no test coverage detected