(element, name)
| 3645 | }; |
| 3646 | |
| 3647 | function getBooleanAttrName(element, name) { |
| 3648 | // check dom last since we will most likely fail on name |
| 3649 | var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()]; |
| 3650 | |
| 3651 | // booleanAttr is here twice to minimize DOM access |
| 3652 | return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr; |
| 3653 | } |
| 3654 | |
| 3655 | function getAliasedAttrName(name) { |
| 3656 | return ALIASED_ATTR[name]; |
no test coverage detected