-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed as not planned
Description
Describe the bug
In both chrome and firefox, if within a component there is a "g" tag and a "div" on main level, the attributes of the "g" are disregarded by the browsers. You can see it written in the DOM, but these attributes are disregarded in the rendered view. Only if you do "edit as html" in devtools, and add a space somewhere it gets rendered. Inspecting the element the "g[Attributes Style]" is not there. If there's no HTML element next to the "g" there's no problem. The reason I'm putting a "div" next to the "g" is to have a tooltip (I portal it to "body"). Making a component encapsulating the "div" solves the issue. This worked in svelte4 and also works with "svg" element, but not with "g"
Reproduction
Logs
System Info
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
Memory: 9.90 GB / 31.77 GB
Binaries:
Node: 18.18.1 - C:\Program Files\nodejs\node.EXE
npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
pnpm: 9.1.0 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Chrome: 131.0.6778.265
Edge: Chromium (132.0.2957.115)
Internet Explorer: 11.0.19041.4355Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels