When unStyling nodes elm-css internally was using VirtualDom.property "className" ... which was causing runtime exceptions for svg elements. The property "className" is deprecated for svg elements and was the reason for the exception.
This meant that anytime you would set css inside of any svg element, an exception would be thrown and cause the page to not render correctly.
Fix
Using VirtualDom.attribute "className" ... properly sets the value and stops the exception from happening.
fixes #543
Context
When
unStyling
nodes elm-css internally was usingVirtualDom.property "className" ...
which was causing runtime exceptions for svg elements. The property "className" is deprecated for svg elements and was the reason for the exception.This meant that anytime you would set css inside of any svg element, an exception would be thrown and cause the page to not render correctly.
Fix
Using
VirtualDom.attribute "className" ...
properly sets the value and stops the exception from happening.Extra