diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp index 617005531ea..e7289b765cb 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp @@ -566,4 +566,11 @@ void HTMLElement::did_receive_focus() browsing_context->set_cursor_position(DOM::Position::create(realm(), *this, 0)); } +// https://html.spec.whatwg.org/multipage/interaction.html#dom-accesskeylabel +String HTMLElement::access_key_label() const +{ + dbgln("FIXME: Implement HTMLElement::access_key_label()"); + return String {}; +} + } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.h b/Userland/Libraries/LibWeb/HTML/HTMLElement.h index 1719c636eb2..cfc800eb24e 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.h @@ -59,6 +59,8 @@ public: void blur(); + [[nodiscard]] String access_key_label() const; + bool fire_a_synthetic_pointer_event(FlyString const& type, DOM::Element& target, bool not_trusted); // https://html.spec.whatwg.org/multipage/forms.html#category-label diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLElement.idl index 8f608b688af..f5838947df2 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLElement.idl +++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.idl @@ -20,7 +20,7 @@ interface HTMLElement : Element { // FIXME: [CEReactions] attribute boolean inert; undefined click(); // FIXME: [CEReactions] attribute DOMString accessKey; - // FIXME: readonly attribute DOMString accessKeyLabel; + readonly attribute DOMString accessKeyLabel; // FIXME: [CEReactions] attribute boolean draggable; // FIXME: [CEReactions] attribute boolean spellcheck; // FIXME: [CEReactions] attribute DOMString autocapitalize;