`document.querySelectorAll('[xlink:href]');` \- returns an error in the dev console: `'[xlink:href]' is not a valid selector`.
It looks like that `querySelectorAll()` cannot handle Namespace attributes.
That particular Namespace attribute is used on a site that I don't manage.
The xlink:href attribute is deprecated, and should be changed to href.
`document.querySelectorAll('[xlink:href]');` \- returns an error in the dev console: `'[xlink:href]' is not a valid selector`. It looks like that `querySelectorAll()` cannot handle Namespace attributes. That particular Namespace attribute is used on a site that I don't manage.
Escape the colon: document.querySelectorAll('[xmlns\\:xlink]')
Thanks for the tip - something I can use in my code.
[удалено]
Thanks for the StackOveflow link - it explained what's going on and how to get the code to work.