lwc icon indicating copy to clipboard operation
lwc copied to clipboard

[SSR] Implement `setHooks` / `lwc:inner-html` sanitization

Open nolanlawson opened this issue 1 year ago • 1 comments

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.

nolanlawson avatar Oct 17 '24 19:10 nolanlawson

This issue has been linked to a new work item: W-17006973

git2gus[bot] avatar Oct 17 '24 19:10 git2gus[bot]