(element, name)
| 3305 | }; |
| 3306 | |
| 3307 | function getBooleanAttrName(element, name) { |
| 3308 | // check dom last since we will most likely fail on name |
| 3309 | var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()]; |
| 3310 | |
| 3311 | // booleanAttr is here twice to minimize DOM access |
| 3312 | return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr; |
| 3313 | } |
| 3314 | |
| 3315 | function getAliasedAttrName(name) { |
| 3316 | return ALIASED_ATTR[name]; |
no test coverage detected