salesforce / lwc

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

perf(template-compiler): static-optimize `spellcheck` #4317

Closed nolanlawson closed 1 week ago

nolanlawson commented 1 week ago

Details

Applies the static content optimization to elements with the spellcheck attribute.

We handle the spellcheck attribute in a special way. This seems due to a bug from years ago: https://github.com/salesforce/lwc/issues/1595

In any case, this PR makes it so static-optimized nodes render spellcheck in exactly the same way as non-static-optimized nodes. There are several tests to prove this.

Partially addresses #4280

Does this pull request introduce a breaking change?

Does this pull request introduce an observable change?