We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code
test('mytest', () => { const div = document.createElement('div') div.innerText = '<b>a</b>' expect(div.innerHTML).toBe('<b>a</b>') expect(div.outerHTML).toBe('<div><b>a</b></div>') })
Expected behavior In a typical browser environment, this test case should pass. But it didn't.
AssertionError: expected '<b>a</b>' to be '<b>a</b>' // Object.is equality - Expected + Received - <b>a</b> + <b>a</b>
Device happy-dom version: 14.12.3
happy-dom
14.12.3
The text was updated successfully, but these errors were encountered:
fix: [capricorn86#1494] Escape content if textnode in getInnerHTML
85d2df8
a45a23a
Thank you for reporting @weibangtuo! 🙂
I believe this issue has been fixed now in v16.0.0.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Code
Expected behavior
In a typical browser environment, this test case should pass. But it didn't.
Device
happy-dom
version:14.12.3
The text was updated successfully, but these errors were encountered: