How can i use document.querySelector or document.querySelectorAll to get specific tag with any namespace.
I cannot use JQuery or any other library.
Ex
<mml:math>
<mml:row>
</mml:row>
</mml:math>
<math style="display:none;">
<mrow>
<msup>
<mfenced>
<mrow>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
</mrow>
</mfenced>
<mn>2</mn>
</msup>
</mrow>
</math>
var tags = ['math:not([style*="display:none"])','mml\\:math:not([style*="display:none"])'];
document.querySelectorAll(mathmlVisibleTag.join()).length
Here user can use any namespace.
I have tried '*\\:math:not([style*="display:none"])' in querySelectorAll but it didn't worked.
Regards