(attributeName)
| 4280 | var validatedAttributeNameCache = {}; |
| 4281 | |
| 4282 | function isAttributeNameSafe(attributeName) { |
| 4283 | if (validatedAttributeNameCache.hasOwnProperty(attributeName)) { |
| 4284 | return true; |
| 4285 | } |
| 4286 | if (illegalAttributeNameCache.hasOwnProperty(attributeName)) { |
| 4287 | return false; |
| 4288 | } |
| 4289 | if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { |
| 4290 | validatedAttributeNameCache[attributeName] = true; |
| 4291 | return true; |
| 4292 | } |
| 4293 | illegalAttributeNameCache[attributeName] = true; |
| 4294 | { |
| 4295 | warning(false, 'Invalid attribute name: `%s`', attributeName); |
| 4296 | } |
| 4297 | return false; |
| 4298 | } |
| 4299 | |
| 4300 | function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { |
| 4301 | if (propertyInfo !== null) { |
no test coverage detected