wui_builder icon indicating copy to clipboard operation
wui_builder copied to clipboard

Classes / ClassName attributes not being applied to svg elements.

Open jerold opened this issue 7 years ago • 2 comments

Following component:

new VSvgSvgElement()
    ..className = "yadda"
    ..attributes = {
      "version": "1.1",
      "xmlns": "http://www.w3.org/2000/svg",
    }
// or
new VSvgSvgElement()
    ..classes = ["yadda"]
    ..attributes = {
      "version": "1.1",
      "xmlns": "http://www.w3.org/2000/svg",
    }

yields the following dom element:

<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>

Class attribute is being applied as expected when running in Chromium, but when the trans-compiled js is viewed in Chrome or mobile browsers it is missing. This also seems to be happening on other svg elements like <rect>, <polygon>, <circle>, <g>.

jerold avatar Mar 01 '18 17:03 jerold

What version are you on? This sounds like something that may have been fixed in the 0.4.0 release

davidmarne avatar Mar 03 '18 00:03 davidmarne

I have 0.4.3 in my .lock file.

jerold avatar Mar 05 '18 15:03 jerold