salesforce / lwc

⚡️ LWC - A Blazing Fast, Enterprise-Grade Web Components Foundation
https://lwc.dev
Other
1.63k stars 395 forks source link

test(ssr): use `Document.parseHTMLUnsafe` #4357

Closed nolanlawson closed 3 months ago

nolanlawson commented 3 months ago

Details

Chrome is giving us a warning about using includeShadowRoots in our tests:

Screenshot 2024-07-03 at 3 41 49 PM

We can switch over to the new parseHTMLUnsafe API instead. Although nothing is ever easy, so we have to polyfill for Firefox.

Does this pull request introduce a breaking change?

Does this pull request introduce an observable change?