(attributeName)
| 4409 | illegalAttributeNameCache = {}, |
| 4410 | validatedAttributeNameCache = {}; |
| 4411 | function isAttributeNameSafe(attributeName) { |
| 4412 | if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) |
| 4413 | return !0; |
| 4414 | if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1; |
| 4415 | if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) |
| 4416 | return (validatedAttributeNameCache[attributeName] = !0); |
| 4417 | illegalAttributeNameCache[attributeName] = !0; |
| 4418 | return !1; |
| 4419 | } |
| 4420 | function setValueForAttribute(node, name, value) { |
| 4421 | if (isAttributeNameSafe(name)) |
| 4422 | if (null === value) node.removeAttribute(name); |
no outgoing calls
no test coverage detected
searching dependent graphs…