SVGElement is not implemented
See original GitHub issueHi,
I’m new with using jsdom and I did not find an answer in the documentation. In a old example from 2014 someone used this code to support svg features:
doc.implementation.addFeature(
'http://www.w3.org/TR/SVG11/feature#BasicStructure', '1.1'
)
In the latest versions of jsdom this does not work because addFeature is not a function. Is there a way to enable SVG 1.1?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:18 (7 by maintainers)
Top Results From Across the Web
SVGElement - Web APIs | MDN
Chrome Edge
SVGElement Full support. Chrome1. Toggle history Full support. Edge12. Toggle hist...
attributeStyleMap Full support. Chrome66. Toggle history Full support. Edge79. Toggle hist...
autofocus Full...
Read more >Why "typeof SVGElement.prototype.getBBox" is "undefined"?
Because getBBox is not defined on all SVG elements, it's only defined on elements that implement the SVGLocatable interface.
Read more >Document Structure — SVG 2
An SVG document fragment can range from an empty fragment (i.e., no content inside of the 'svg' element), to a very simple SVG...
Read more >Class SvgElement | SVG.NET API
ColorInterpolationFilters. Gets or sets the color space for imaging operations performed via filter effects. NOT currently mapped through to bitmap ...
Read more >svgelements - PyPI
Many of these are supported some are not. Supported. Robust SVG parsing. Basic SVG writing; SVG/CSS Lengths: px , pt , pc ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m interested in helping out here if I can. What is the status of https://github.com/tmpvar/jsdom/pull/1445?
Is this fixed? This doesn’t necessarily need SVG support for at least minimal XML support. It doesn’t really need to be fancy. As far as I can tell by default you’re just disappearing unrecognised attributes. Simply not doing that could potentially be enough.