Skip to content

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

Closed
syi0808 wants to merge 1 commit intocapricorn86:masterfrom
syi0808:fix/inner-html-text-node-exception-handling
Closed

fix: [#1494] Escape content in getInnerHTML#1498
syi0808 wants to merge 1 commit intocapricorn86:masterfrom
syi0808:fix/inner-html-text-node-exception-handling

Conversation

@syi0808
Copy link
Copy Markdown
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

@syi0808 syi0808 requested a review from capricorn86 as a code owner July 26, 2024 15:52
@capricorn86
Copy link
Copy Markdown
Owner

Thank you for your contributuion @syi0808! 🌟

I believe this was fixed in happy-dom@15.0.0. 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