(attributeName)
| 4122 | var validatedAttributeNameCache = {}; |
| 4123 | |
| 4124 | function isAttributeNameSafe(attributeName) { |
| 4125 | if (validatedAttributeNameCache.hasOwnProperty(attributeName)) { |
| 4126 | return true; |
| 4127 | } |
| 4128 | if (illegalAttributeNameCache.hasOwnProperty(attributeName)) { |
| 4129 | return false; |
| 4130 | } |
| 4131 | if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { |
| 4132 | validatedAttributeNameCache[attributeName] = true; |
| 4133 | return true; |
| 4134 | } |
| 4135 | illegalAttributeNameCache[attributeName] = true; |
| 4136 | { |
| 4137 | warning(false, 'Invalid attribute name: `%s`', attributeName); |
| 4138 | } |
| 4139 | return false; |
| 4140 | } |
| 4141 | |
| 4142 | function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { |
| 4143 | if (propertyInfo !== null) { |
no test coverage detected