From 35826114c5f226d36878d40b57e667ddd6d6fe89 Mon Sep 17 00:00:00 2001 From: Trevin Chow Date: Fri, 10 Apr 2026 04:25:53 -0700 Subject: [PATCH] feat(html): add `inert` global HTML attribute (#5476) Add the `inert` boolean attribute to the global HTML attribute group and to the SSR boolean attributes list. This allows users to set `inert` on any HTML element, matching the HTML spec. Fixes #5455 --- packages/html/src/attribute_groups.rs | 3 +++ packages/ssr/src/renderer.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/packages/html/src/attribute_groups.rs b/packages/html/src/attribute_groups.rs index 3d2f33c87..09b28c16e 100644 --- a/packages/html/src/attribute_groups.rs +++ b/packages/html/src/attribute_groups.rs @@ -301,6 +301,9 @@ mod_methods! { /// inputmode; + /// + inert; + /// is; diff --git a/packages/ssr/src/renderer.rs b/packages/ssr/src/renderer.rs index 10f271418..b21ba4003 100644 --- a/packages/ssr/src/renderer.rs +++ b/packages/ssr/src/renderer.rs @@ -447,6 +447,7 @@ pub(crate) const BOOL_ATTRS: &[&str] = &[ "disabled", "formnovalidate", "hidden", + "inert", "ismap", "itemscope", "loop",