refactor(html): query inert attribute presence directly

This commit is contained in:
ldm0
2026-10-04 10:48:33 +08:00
parent 7106a4e4b6
commit 0964d3f91d
@@ -2554,7 +2554,7 @@ pub(in crate::native_bridge) fn node_inert_getter_function<'s>(
throw_incompatible_getter_receiver(scope, "HTMLElement", "inert");
return;
}
rv.set_bool(element_attribute(runtime, handle, "inert").is_some());
rv.set_bool(element_has_attribute(runtime, handle, "inert"));
}
pub(in crate::native_bridge) fn node_inert_setter_function<'s>(