-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Ignore noscript content on the client #13537
Conversation
Details of bundled changes.Comparing: 28b9289...eb7d792 react-scheduler
Generated by 🚫 dangerJS |
Ideally you might want to try writing an extra test in |
Thank you for the quick feedback, I'll have a look at that test suite and see where I can add some more tests. First ci-fail was a bad test that for some reason worked locally, fixed now. Not sure about the current |
Added another test. Seeing how tests in The existing test also tests that |
I think this makes sense to me. Thanks. |
* Ignore noscript content on the client (facebook#11423) * Fix failing test for ignoring noscript content * Add a ServerIntegration test for noscript
Fixes #11423
First PR, CLA is signed.
Before this PR
<noscript><img src="..." /></noscript>
would:I tried fixing this by only touching ReactDOM and found that by treating
<noscript>
as an element that only supports text it achieved the desired effects. This also keeps the markup in the DOM on the client which is desirable as per the issue.Questions:
shouldSetTextContent
is true for noscript-elements on the client, but could it have any unintended side-effects now or in the future?