(element, name)
| 3534 | }; |
| 3535 | |
| 3536 | function getBooleanAttrName(element, name) { |
| 3537 | // check dom last since we will most likely fail on name |
| 3538 | var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()]; |
| 3539 | |
| 3540 | // booleanAttr is here twice to minimize DOM access |
| 3541 | return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr; |
| 3542 | } |
| 3543 | |
| 3544 | function getAliasedAttrName(name) { |
| 3545 | return ALIASED_ATTR[name]; |
no test coverage detected