From 975a71de453c340022b40c568ca257ed5251ecf8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 27 Sep 2021 16:51:10 +0200 Subject: [PATCH] LibWeb: Implement the Document.activeElement attribute We were already tracking the active element in DOM::Document, so all we had to do here was add the attribute to Document.idl :^) --- Userland/Libraries/LibWeb/DOM/Document.idl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibWeb/DOM/Document.idl b/Userland/Libraries/LibWeb/DOM/Document.idl index c86cbc6799..71908af982 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.idl +++ b/Userland/Libraries/LibWeb/DOM/Document.idl @@ -18,6 +18,8 @@ interface Document : Node { readonly attribute USVString referrer; + readonly attribute Element? activeElement; + Element? getElementById(DOMString id); HTMLCollection getElementsByName(DOMString name); HTMLCollection getElementsByTagName(DOMString tagName);