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:
1 parent
71df8c790f
commit
35826114c5
2 files changed
+4
No files matched your search
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -447,6 +447,7 @@ pub(crate) const BOOL_ATTRS: &[&str] = &[
|
|||||||
"disabled",
|
"disabled",
|
||||||
"formnovalidate",
|
"formnovalidate",
|
||||||
"hidden",
|
"hidden",
|
||||||
|
"inert",
|
||||||
"ismap",
|
"ismap",
|
||||||
"itemscope",
|
"itemscope",
|
||||||
"loop",
|
"loop",
|
||||||
|
|||||||
Reference in new issue
Block a user