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
Light DOM serialization is incorrect when mixed with synthetic shadow DOM #2425
Comments
This issue has been linked to a new work item: W-9630160 |
* fix(synthetic-shadow): fix light DOM serialization Fixes #2425 * fix: fix deep shadows within light * fix: get it working in IE11 * fix: fix code comment * fix: fix code comment * fix: extract into shared function * fix: use treewalker * test: add some more sanity tests for light DOM depth
Reopened due to #2540 |
@nolanlawson @abdulsattar while I haven't gotten any negative feedback is this bug close to landing because this seems like one we should probably ensure devs don't take a dependency on |
@gregwhitworth Yep I came to the same conclusion. Planning to merge soon: #2549 (comment) |
We resolved not to make this change, to avoid breaking current users of synthetic shadow DOM. |
Description
The following API report incorrect values when mixing light DOM with synthetic shadow DOM:
Node.prototype.textContent
Element.prototype.innerHTML
Element.prototype.outerHTML
Failing test examples added via #2393
Browsers Affected
All
Version
The text was updated successfully, but these errors were encountered: