(attributeName)
| 3262 | var validatedAttributeNameCache = {}; |
| 3263 | |
| 3264 | function isAttributeNameSafe(attributeName) { |
| 3265 | if (validatedAttributeNameCache.hasOwnProperty(attributeName)) { |
| 3266 | return true; |
| 3267 | } |
| 3268 | if (illegalAttributeNameCache.hasOwnProperty(attributeName)) { |
| 3269 | return false; |
| 3270 | } |
| 3271 | if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { |
| 3272 | validatedAttributeNameCache[attributeName] = true; |
| 3273 | return true; |
| 3274 | } |
| 3275 | illegalAttributeNameCache[attributeName] = true; |
| 3276 | { |
| 3277 | warning(false, 'Invalid attribute name: `%s`', attributeName); |
| 3278 | } |
| 3279 | return false; |
| 3280 | } |
| 3281 | |
| 3282 | function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { |
| 3283 | if (propertyInfo !== null) { |
no test coverage detected