(element, name)
| 3557 | }; |
| 3558 | |
| 3559 | function getBooleanAttrName(element, name) { |
| 3560 | // check dom last since we will most likely fail on name |
| 3561 | var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()]; |
| 3562 | |
| 3563 | // booleanAttr is here twice to minimize DOM access |
| 3564 | return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr; |
| 3565 | } |
| 3566 | |
| 3567 | function getAliasedAttrName(name) { |
| 3568 | return ALIASED_ATTR[name]; |
no test coverage detected