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.
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 theparse
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.