(type, props, eventRegistry)
| 21708 | return !0; |
| 21709 | } |
| 21710 | function warnUnknownProperties(type, props, eventRegistry) { |
| 21711 | var unknownProps = [], |
| 21712 | key; |
| 21713 | for (key in props) |
| 21714 | validateProperty(type, key, props[key], eventRegistry) || |
| 21715 | unknownProps.push(key); |
| 21716 | props = unknownProps |
| 21717 | .map(function (prop) { |
| 21718 | return "`" + prop + "`"; |
| 21719 | }) |
| 21720 | .join(", "); |
| 21721 | 1 === unknownProps.length |
| 21722 | ? console.error( |
| 21723 | "Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ", |
| 21724 | props, |
| 21725 | type |
| 21726 | ) |
| 21727 | : 1 < unknownProps.length && |
| 21728 | console.error( |
| 21729 | "Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ", |
| 21730 | props, |
| 21731 | type |
| 21732 | ); |
| 21733 | } |
| 21734 | function sanitizeURL(url) { |
| 21735 | return isJavaScriptProtocol.test("" + url) |
| 21736 | ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" |
no test coverage detected
searching dependent graphs…