File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
ext/dom/lexbor/lexbor/selectors-adapted Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1638,18 +1638,19 @@ lxb_selectors_pseudo_element_function(lxb_selectors_t *selectors,
1638
1638
return false;
1639
1639
}
1640
1640
1641
+ /* https://html.spec.whatwg.org/multipage/semantics-other.html#concept-element-disabled */
1641
1642
static bool
1642
1643
lxb_selectors_pseudo_class_disabled (const xmlNode * node )
1643
1644
{
1644
1645
if (!lxb_selectors_adapted_has_attr (node , "disabled" )) {
1645
1646
return false;
1646
1647
}
1647
1648
1648
- // TODO: optgroup??
1649
1649
if (lxb_selectors_adapted_cmp_local_name_literal (node , "button" )
1650
1650
|| lxb_selectors_adapted_cmp_local_name_literal (node , "input" )
1651
1651
|| lxb_selectors_adapted_cmp_local_name_literal (node , "select" )
1652
- || lxb_selectors_adapted_cmp_local_name_literal (node , "textarea" ))
1652
+ || lxb_selectors_adapted_cmp_local_name_literal (node , "textarea" )
1653
+ || lxb_selectors_adapted_cmp_local_name_literal (node , "optgroup" ))
1653
1654
{
1654
1655
return true;
1655
1656
}
You can’t perform that action at this time.
0 commit comments