You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug :not(element) selector doesn't consider provided element type when matching nodes.
To Reproduce
The following reproduction test is currently failing in happy-dom.
it('Returns all elements matching "[tabindex]:not(textarea)".',()=>{document.body.innerHTML=` <div tabindex="-1"></div> <div tabindex="0"></div> <div tabindex="1"></div> <textarea tabindex="-1"></textarea> `;constelements=document.querySelectorAll('[tabindex]:not(textarea)');expect(elements.length).toBe(3);// but actual is 0});
Expected behavior :not() pseudo class selector should properly match elements that do not match provided element type selector.
The text was updated successfully, but these errors were encountered:
Describe the bug
:not(element)
selector doesn't consider provided element type when matching nodes.To Reproduce
The following reproduction test is currently failing in happy-dom.
Expected behavior
:not()
pseudo class selector should properly match elements that do not match provided element type selector.The text was updated successfully, but these errors were encountered: