javascript - Is there a way to go within the tag of an svg tag? -


i have following object returning me these tags this call.

my image

however, i'm trying access properties of <rect> tag. knowing jquery can't transverse svg tags, there way me call inner rect tag?

try

console.dir(document.queryselector('svg').firstelementchild); 

you can navigate through svg tag subtree using regular dom node methods


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -