(element, name)
| 3580 | }; |
| 3581 | |
| 3582 | function getBooleanAttrName(element, name) { |
| 3583 | // check dom last since we will most likely fail on name |
| 3584 | var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()]; |
| 3585 | |
| 3586 | // booleanAttr is here twice to minimize DOM access |
| 3587 | return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr; |
| 3588 | } |
| 3589 | |
| 3590 | function getAliasedAttrName(name) { |
| 3591 | return ALIASED_ATTR[name]; |
no test coverage detected