[Webkit-unassigned] [Bug 25720] querySelectorAll do not consider hidden input field when querying for :enabled and :disabled pseudos

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 22 16:16:58 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=25720

Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |CONFIGURATION CHANGED

--- Comment #6 from Alexey Proskuryakov <ap at webkit.org> ---
I do not know about WPT, but browser appear to be aligned on the behavior now:

<html>
<body>
<form>
  <input type="text"/>
  <input type="text" disabled="true"/>
  <input type="hidden"/>
  <input type="hidden" disabled="true"/>
</form>
<script>
console.log(document.querySelectorAll(':enabled').length)
console.log(document.querySelectorAll(':disabled').length)
</script>
</body>
</html>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220722/7ebaa9c7/attachment.htm>


More information about the webkit-unassigned mailing list