fix: Fix broken WPT build (-Dwpt_extensions)

Broken by: https://github.com/lightpanda-io/browser/pull/3128
This commit is contained in:
Karl Seguin committed 2026-08-05 14:41:17 +08:00
1 parent 8cdc8831c1
commit 4e8533b040
1 file changed
+2 -2
+2 -2
View File
@@ -60,8 +60,8 @@ pub fn getComputedLabel(_: *const WebDriver, element: *Element, frame: *Frame) !
pub fn click(_: *const WebDriver, element: *Element, frame: *Frame) !void {
if (element.is(Element.Html)) |html| {
switch (html._type) {
inline .button, .input, .textarea, .select => |i| {
if (i.getDisabled()) {
inline .button, .input, .textarea, .select => |tag| {
if (html.subtype(Element.Html.Subtype(tag)).getDisabled()) {
return;
}
},