(attributeName)
| 3390 | var validatedAttributeNameCache = {}; |
| 3391 | |
| 3392 | function isAttributeNameSafe(attributeName) { |
| 3393 | if (validatedAttributeNameCache.hasOwnProperty(attributeName)) { |
| 3394 | return true; |
| 3395 | } |
| 3396 | if (illegalAttributeNameCache.hasOwnProperty(attributeName)) { |
| 3397 | return false; |
| 3398 | } |
| 3399 | if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { |
| 3400 | validatedAttributeNameCache[attributeName] = true; |
| 3401 | return true; |
| 3402 | } |
| 3403 | illegalAttributeNameCache[attributeName] = true; |
| 3404 | { |
| 3405 | warning(false, 'Invalid attribute name: `%s`', attributeName); |
| 3406 | } |
| 3407 | return false; |
| 3408 | } |
| 3409 | |
| 3410 | function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { |
| 3411 | if (propertyInfo !== null) { |
no test coverage detected