diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-27 16:51:10 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-27 16:52:22 +0200 |
commit | 975a71de453c340022b40c568ca257ed5251ecf8 (patch) | |
tree | 70015ed7bcb8bf9027bb305e6eb48dd98951c7d4 | |
parent | 7410736b0fe0432d3179f673bf8b495b40980e3e (diff) | |
download | serenity-975a71de453c340022b40c568ca257ed5251ecf8.zip |
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 :^)
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.idl | 2 |
1 files changed, 2 insertions, 0 deletions
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); |