diff --git a/moli-renderer-v8/src/native_bridge/element/global_attributes.rs b/moli-renderer-v8/src/native_bridge/element/global_attributes.rs index a808d7c71d..b0c4ba886b 100644 --- a/moli-renderer-v8/src/native_bridge/element/global_attributes.rs +++ b/moli-renderer-v8/src/native_bridge/element/global_attributes.rs @@ -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>(