ECharts SSR: quotes in style values are not escaped

Offen
#211 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
56/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, react

Rechercherichtung

Start by inspecting the current ECharts SVG renderer source and reproduce the issue with a fontFamily value containing quotes, such as "Segoe UI", sans-serif. The issue points to packages/pivotkit-report/src/tokens.js as the workaround and says cleanSvg rejects the resulting SVG; confirm whether ECharts still leaves quotes unescaped. If so, prepare an upstream issue proposal for the maintainer to approve.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:report bug idea

ECharts 6.1.0 SSR (SVG renderer) does not escape quotes in style attribute values: a fontFamily such as "Segoe UI", sans-serif breaks the SVG. Workaround in packages/pivotkit-report/src/tokens.js (font names without quotes), and cleanSvg refuses such an SVG. To do: check the current ECharts source and, if still present, propose an upstream issue (text needs my approval).

Vorherrschende Sprache
JavaScript
Sterne
1
Forks
1
Ø Merge
3 Std. 21 Min.
Gemergte PRs (30 T.)
250

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus eizedev/pivotkit

Alle Issues in eizedev/pivotkit

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.