Netflix / x-element

A dead simple starting point for custom elements.
Apache License 2.0
28 stars 12 forks source link

Discussion: Allow interpolation in “style” and “script” tags for template engine. #123

Open theengineear opened 1 year ago

theengineear commented 1 year ago

Mostly opening this ticket up as a decision log. Currently, the template engine will short-circuit and simply replace the textContent of such an interpolated element with /* x-element: Interpolation is not allowed here. */.

Authors can use unsafeHtml or manually inject text content into the DOM node if they really want to inject unsafe user content into such elements.