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:
shouldSetTextContentis true for noscript-elements on the client, but could it have any unintended side-effects now or in the future?