JSFiddle - React, Tailwind, and code Playground

HTML

<svg>
    <tspan x=10 y=10></tspan>
</svg>

JavaScript

alert($("svg").find("[x='10'][y='10']").length);