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 cdb56e37b..893a724ed 100644 --- a/moli-renderer-v8/src/native_bridge/element/global_attributes.rs +++ b/moli-renderer-v8/src/native_bridge/element/global_attributes.rs @@ -2552,7 +2552,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>(