Skip to content
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

fix: [#1494] Escape content in getInnerHTML #1498

Conversation

syi0808
Copy link
Contributor

@syi0808 syi0808 commented Jul 26, 2024

According to the https://html.spec.whatwg.org/#serialising-html-fragments, in innerHTML, textnode should be escaped like https://html.spec.whatwg.org/#escapingString

The actual browser behavior of the modified existing test is also as follows.
스크린샷 2024-07-27 오전 12 47 56

Fix: #1494

@capricorn86
Copy link
Owner

Thank you for your contributuion @syi0808! 🌟

I believe this was fixed in [email protected]. I will therefore close the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

innerHTML and outterHTML case that differs from browser behavior
2 participants