MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / shouldIgnoreAttribute

Function shouldIgnoreAttribute

code/styling/public/app.js:4049–4060  ·  view source on GitHub ↗
(name, propertyInfo, isCustomComponentTag)

Source from the content-addressed store, hash-verified

4047}
4048
4049function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
4050 if (propertyInfo !== null) {
4051 return propertyInfo.type === RESERVED;
4052 }
4053 if (isCustomComponentTag) {
4054 return false;
4055 }
4056 if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
4057 return true;
4058 }
4059 return false;
4060}
4061
4062function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
4063 if (propertyInfo !== null && propertyInfo.type === RESERVED) {

Callers 2

setValueForPropertyFunction · 0.70
diffHydratedProperties$1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected