question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SVGElement is not implemented

See original GitHub issue

Hi, 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:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nhunzakercommented, Dec 19, 2016

I’m interested in helping out here if I can. What is the status of https://github.com/tmpvar/jsdom/pull/1445?

0reactions
joeyhubcommented, May 14, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found