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
This commit is contained in:
Trevin Chow authored and GitHub committed 2026-04-10 12:25:53 +01:00
1 parent 71df8c790f
commit 35826114c5
2 files changed
+4

No files matched your search

+3
View File
@@ -301,6 +301,9 @@ mod_methods! {
/// <https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode> /// <https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode>
inputmode; inputmode;
/// <https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inert>
inert;
/// <https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/is> /// <https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/is>
is; is;
+1
View File
@@ -447,6 +447,7 @@ pub(crate) const BOOL_ATTRS: &[&str] = &[
"disabled", "disabled",
"formnovalidate", "formnovalidate",
"hidden", "hidden",
"inert",
"ismap", "ismap",
"itemscope", "itemscope",
"loop", "loop",