lwc
lwc copied to clipboard
[SSR] Implement `setHooks` / `lwc:inner-html` sanitization
In the SSR compiler/runtime, we should have a parallel API like setHooks to enforce lwc:inner-html validation. It should throw an error at runtime if setHooks is not called, and use the hook if it is called.
Related: https://github.com/salesforce/lwc/issues/4442 . We are considering removing it, but for now this is how @lwc/engine-server behaves.
This issue has been linked to a new work item: W-17006973