From 82497a78a808579e3dc1de2184f0a2353d6e84d3 Mon Sep 17 00:00:00 2001 From: Navid EMAD Date: Wed, 29 Apr 2026 03:36:41 +0200 Subject: [PATCH 1/2] selector: walk fieldset/optgroup ancestors when matching :disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `:disabled` and `:enabled` pseudo-class matchers in `webapi/selector/List.zig` only checked the element's own `disabled` content attribute. Per HTML "selector-disabled" + "concept-fe-disabled" + "concept-option-disabled", a form control inside
matches :disabled (with the first- exception), and an matches :disabled. Route both pseudo-classes through `Element.isDisabled` (which already walks the fieldset chain) and extend `isDisabled` to cover the case. . It does NOT inherit from +
x
+
y
+z + + +