meerk40t / svgelements

SVG Parsing for Elements, Paths, and other SVG Objects.
MIT License
133 stars 29 forks source link

svgelements does not implement `switch` #75

Open tatarize opened 3 years ago

tatarize commented 3 years ago

The switch object can be implemented if we take in a set of values from the parsing routine. Rendered elements are those added into actual dom tree. So if an svg has special switched elements, we could determine which of these are known by accepting an initial set of values for values which would include these namespaces. That we can detect and read passed to the parse function. These elements would be returned as simple SVGElement objects but with intact values to be parsed by later. Currently it will simply render the switch itself as an SVGElement.