lit/lit

SVG render method instead html

Offen

#4.394 geöffnet am 12.11.2023

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (874 Forks)batch import
Good First Issue

Repository-Metriken

Stars
 (16.966 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 8T 10h) (3 gemergte PRs in 30 T)

Beschreibung

Which package(s) are affected?

Lit Core (lit / lit-html / lit-element / reactive-element)

Description

Inside the render method, by mistake I used svg imsyead html as usual for the elements I create. In Chrome version and after I approve changes in my repo, nothing was detected or throwing me any error. Instead the component didn’t appear in Firefox as Safari other browsers. Probably you need to make a security checker of the type render for the document

Reproduction

It shoulda not run svg in chrome as html

Workaround

I saw featuring into the browsers, but Crime doesn’t Detect the issue

Is this a regression?

Yes. This used to work, but now it doesn't.

Affected versions

3.0

Browser/OS/Node environment

Node 20+ Firefox, Safari, npm5, storybook 7

Contributor Guide