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

Function shouldIgnoreAttribute

code/third-party/public/app.js:3282–3293  ·  view source on GitHub ↗
(name, propertyInfo, isCustomComponentTag)

Source from the content-addressed store, hash-verified

3280}
3281
3282function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
3283 if (propertyInfo !== null) {
3284 return propertyInfo.type === RESERVED;
3285 }
3286 if (isCustomComponentTag) {
3287 return false;
3288 }
3289 if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
3290 return true;
3291 }
3292 return false;
3293}
3294
3295function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
3296 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