wui_builder
wui_builder copied to clipboard
Classes / ClassName attributes not being applied to svg elements.
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>.
What version are you on? This sounds like something that may have been fixed in the 0.4.0 release
I have 0.4.3 in my .lock file.