Given:
<
[*|href] will match both html href and svg xlink:href, then use :not([href]) to exclude html href.
[*|href]
href
xlink:href
:not([href])
document.querySelectorAll('[*|href]:not([href])')
tested in chrome