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