From e610346fab3f6e7c3ccb701a0e0a3dbb3b549c1e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 14 Apr 2024 17:56:03 +0200 Subject: [PATCH] LibWeb: Minimally implement HTMLElement.inert and HTMLElement.accessKey This commit adds attribute reflection but nothing else. --- Userland/Libraries/LibWeb/HTML/AttributeNames.h | 1 + Userland/Libraries/LibWeb/HTML/HTMLElement.idl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/AttributeNames.h b/Userland/Libraries/LibWeb/HTML/AttributeNames.h index 9af36d13741..d26ff731b2c 100644 --- a/Userland/Libraries/LibWeb/HTML/AttributeNames.h +++ b/Userland/Libraries/LibWeb/HTML/AttributeNames.h @@ -16,6 +16,7 @@ namespace AttributeNames { __ENUMERATE_HTML_ATTRIBUTE(abbr) \ __ENUMERATE_HTML_ATTRIBUTE(accept) \ __ENUMERATE_HTML_ATTRIBUTE(accept_charset) \ + __ENUMERATE_HTML_ATTRIBUTE(accesskey) \ __ENUMERATE_HTML_ATTRIBUTE(action) \ __ENUMERATE_HTML_ATTRIBUTE(align) \ __ENUMERATE_HTML_ATTRIBUTE(alink) \ diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLElement.idl index f5838947df2..7fa441c14f5 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLElement.idl +++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.idl @@ -17,9 +17,9 @@ interface HTMLElement : Element { // user interaction [Reflect, CEReactions] attribute boolean hidden; - // FIXME: [CEReactions] attribute boolean inert; + [Reflect, CEReactions] attribute boolean inert; undefined click(); - // FIXME: [CEReactions] attribute DOMString accessKey; + [Reflect=accesskey, CEReactions] attribute DOMString accessKey; readonly attribute DOMString accessKeyLabel; // FIXME: [CEReactions] attribute boolean draggable; // FIXME: [CEReactions] attribute boolean spellcheck;