put-selector icon indicating copy to clipboard operation
put-selector copied to clipboard

SVG Support

Open au-phiware opened this issue 9 years ago • 0 comments

I have encountered the following error:

Uncaught TypeError: Cannot set property className of #<SVGElement> which has only a getter
(anonymous function)    @   put.js:145
put @   put.js:79

userAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"

var put = require("put-selector");
put.addNamespace('svg', "http://www.w3.org/2000/svg");
put('svg|g.oops');

For SVG elements you should be using the classList property.

au-phiware avatar Sep 28 '16 17:09 au-phiware