TAG
JavaScript
Result
Run
License
<svg id="sprite" xmlns="http://www.w3.org/2000/svg" xmlns:foo="http://www.example.com/foo" > <circle cx='50' cy='60' r='50' fill="green" foo:drag='true'/> </svg>
window.addEventListener("load", function() { const elSvg = document.getElementById("sprite"); const iterAttr = elSvg.children[0].attributes[Symbol.iterator](); for(attr of iterAttr) { console.log(`${attr.localName}: ${attr.prefix}`); } });
Console
expand_less
License
License
by DevDic
Close