-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't warn about casing in SSR for non-HTML NS #10452
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this! Makes sense to me.
@@ -343,6 +319,8 @@ var ReactDOMFiberComponent = { | |||
} | |||
if (namespaceURI === HTML_NAMESPACE) { | |||
if (__DEV__) { | |||
// Should this check be gated by parent namespace? Not sure we want to | |||
// allow <SVG> or <mATH>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit - probably meant "<MATH>" not "<mATH>"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I meant. :)
@@ -772,4 +772,36 @@ describe('ReactDOMServer', () => { | |||
); | |||
}).toThrowError(/Cannot assign to read only property.*/); | |||
}); | |||
|
|||
it('warns about lowercase html but not in svg tags', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome - thanks for adding a test!
Fixes #10415.