put-selector
put-selector copied to clipboard
SVG Support
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.