(element, name)
| 3144 | }; |
| 3145 | |
| 3146 | function getBooleanAttrName(element, name) { |
| 3147 | // check dom last since we will most likely fail on name |
| 3148 | var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()]; |
| 3149 | |
| 3150 | // booleanAttr is here twice to minimize DOM access |
| 3151 | return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr; |
| 3152 | } |
| 3153 | |
| 3154 | function getAliasedAttrName(name) { |
| 3155 | return ALIASED_ATTR[name]; |
no test coverage detected