We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
attrs
create.svgElem()
1 parent 0b756bc commit 8d15b9cCopy full SHA for 8d15b9c
chromium/extension/lib/dom.js
@@ -37,7 +37,7 @@ window.dom = {
37
return style
38
},
39
40
- svgElem(type, attrs) {
+ svgElem(type, attrs = {}) {
41
const elem = document.createElementNS('http://www.w3.org/2000/svg', type)
42
for (const attr in attrs) elem.setAttributeNS(null, attr, attrs[attr])
43
return elem
firefox/extension/lib/dom.js
0 commit comments