Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

1 vote
2 answers
504 views

Find parent "SVG" element in Internet Explorer

var HELPERS = { getElem: function($this) { return HELPERS.findAncestor($this, "svg"); }, findAncestor: function (el, sel) { while ((el = el.parentElement) && !((el.matches || el....
old_padawan's user avatar
0 votes
0 answers
114 views

SVG image not getting updating on E11

I have an accordion opens and close on click of down/up caret button. Works fine on all browsers except E11. Through JS I am updating SVG's xlink:href attribute on click of caret like <svg xmlns=...
Mayank's user avatar
  • 944
1 vote
1 answer
662 views

SVG naturalWidth on IE11

I'm trying to get the naturalWidth property from an SVG image on IE11. I can get the naturalWidth and naturalHeight on Chrome, Firefox, and Safari but on IE11 it always returns 0. Here is a simple ...
Andres's user avatar
  • 6,190
5 votes
2 answers
5k views

IE11 - Object doesn't support property or method 'contains'

Working with Rappid I encountered an error in IE11 console: Object doesn't support property or method 'contains' This error is from an SVGElement not having that method. Same code in Chrome works. ...
ArielGro's user avatar
  • 785
0 votes
1 answer
574 views

"Unhandled promise rejection TypeMismatchError" in internet explorer 11

I am using a port for javascript bases on potrace: https://github.com/kilobtye/potrace this library converts images to svg Everything works except for(ofcourse...) internet explorer 11. i get the ...
Bart's user avatar
  • 11
1 vote
1 answer
312 views

d3 svg drawing rect bar chart not work in IE11

I'm finish a dynamic bar chart using d3, it's perfect work in google chrome. However, it's not work in IE11. here is my code The problems are: only work on drawing the background table, but the ...
skt_fans_boy's user avatar
0 votes
1 answer
291 views

Internet Explorer 11 - Dynamic SVG creation [duplicate]

I need to create a JavaScript Framework to build a FlowChart inside the browser. To manipulate the DOM I use mostly follow function insertAdjacentHTML. Now I try my current implementation in ...
Nyxero's user avatar
  • 89
0 votes
1 answer
943 views

Javascript function won't build an SVG on IE11

I'm creating Google Analytic like graphs using SVGs to plot the data along points. I've sourced a function that will accept an array of points and build them into a path element which is inserted ...
Lewis Carville's user avatar
1 vote
0 answers
4k views

SVG: Append Title to selfclosing Path concludes with invalid XML in IE11

I encountered a new problem since the latest update of IE11 (11.309.16299.0), which I am able to demonstrate with the following snippet: var tE = document.createElement("div"); tE.innerHTML = "<...
Lain's user avatar
  • 3,678
1 vote
0 answers
76 views

Make grayscale on layer NOT <img/> in IE11

How to make equivalent of .anyClass { filter:grayscale(100%); } in IE11 for elements other than <img/>? The code doesn't have to work in IE10 and earlier and other browsers. I googled ...
18C's user avatar
  • 2,070
0 votes
0 answers
553 views

The position of a line does not change in IE11 after `.attr`() update of `<path>`

Using d3's method .attr to update <path d="M100,100L200,200" style="marker-end: url(#end-arrow)"> has no effect in IE11? If I remove style="marker-end: url(#end-arrow)", it will become normal in ...
zhangyuanliang's user avatar
4 votes
2 answers
1k views

Microsoft Edge can not set data attribute on SVG

Just run into something I did not expect. Testing a site in IE Edge, I get an error in the console: Unable to set property 'shape' of undefined or null reference After debugging for a while it seems ...
freeMagee's user avatar
  • 454
5 votes
1 answer
706 views

SVG image badly scaled in IE11

I have an external SVG image that won't keep it aspect-ratio in IE11. .container { width: 400px; height: 400px; display: block; border: 1px solid blue; } img { max-height: 200px;...
Bram's user avatar
  • 121
2 votes
1 answer
157 views

Why the gap and width of SVG rectangles, drawn consecutively, are uneven when rendered in IE11?

The gap and width of SVG rectangles are uneven visually when rendered in Internet Explorer 11. Consecutive rectangles are drawn having same gap and width but in IE11 the gap and width seem to be ...
Arnab003's user avatar
  • 355
0 votes
1 answer
2k views

SVG viewBox behaviour in IE

I have this SVG and by using viewBox attribute, I can move in it and see every part of it. The yellow box you see in picture above is a constant 400x400 SVG and the width and height of it doesn't ...
omidh's user avatar
  • 2,714

15 30 50 per page