Closed Jazz-Man closed 4 years ago
I added the ability to search for elements by certain attribute but without any value, for example:
const root = HTMLParser.parse('<a id="id" data-id="myid-one"><div><span class="a b" data-id="myid-two"></span><span></span><span></span></div></a>'); const test = root.querySelectorAll('[data-id]');
Thank you.
I added the ability to search for elements by certain attribute but without any value, for example: