How can I get width and height of SVG on Image.load in IE 11
问题 It works fine everywhere but not in IE 11 (I have not tested other IE versions yet). var img = new Image(); img.onload = function(){ alert( 'img: ' + img.width + 'x' + img.height + ' natural: ' + img.naturalWidth + 'x' + img.naturalHeight ); }; img.src = 'http://upload.wikimedia.org/wikipedia/en/b/b5/Boeing-Logo.svg'; JSFiddle: JSFiddle Result: img: 121x30 natural: 121x30 - Real browsers (Chrome, Safari, Firefox, ...) img: 0x0 natural: 0x0 - IE 11 There is a similar question here: Getting