From d4d5d2733e289cb95ea4bf135a003bac1398b1ef Mon Sep 17 00:00:00 2001 From: Demonthos <66571940+Demonthos@users.noreply.github.com> Date: Thu, 8 Sep 2022 14:06:25 -0500 Subject: [PATCH] add missing global attributes (#546) --- packages/html/src/global_attributes.rs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/html/src/global_attributes.rs b/packages/html/src/global_attributes.rs index 199cd0b86..589057339 100644 --- a/packages/html/src/global_attributes.rs +++ b/packages/html/src/global_attributes.rs @@ -59,7 +59,8 @@ pub trait GlobalAttributes { no_namespace_trait_methods! { accesskey; - + autocapitalize; + autofocus; /// The HTML class attribute is used to specify a class for an HTML element. /// /// ## Details @@ -93,17 +94,28 @@ pub trait GlobalAttributes { data; dir; draggable; + enterkeyhint; + exportparts; hidden; id; + inputmode; + is; + itemid; + itemprop; + itemref; + itemscope; + itemtype; lang; + nonce; + part; + role; + slot; spellcheck; style; tabindex; title; translate; - role; - /// dangerous_inner_html is Dioxus's replacement for using innerHTML in the browser DOM. In general, setting /// HTML from code is risky because it’s easy to inadvertently expose your users to a cross-site scripting (XSS) /// attack. So, you can set HTML directly from Dioxus, but you have to type out dangerous_inner_html to remind