LibWeb: Implement (most of) HTMLElement.focus()

The main deviation from the spec is that we don't have a straightforward
representation of the spec's "focusable area" concept.

I've left a bunch of FIXME's around for our future selves. :^)
This commit is contained in:
Andreas Kling 2022-02-06 18:46:26 +01:00
commit a062e803c5
Notes: sideshowbarker 2024-07-17 19:41:51 +09:00
3 changed files with 213 additions and 0 deletions

View file

@ -7,6 +7,9 @@ interface HTMLElement : Element {
attribute DOMString contentEditable;
// FIXME: Support the optional FocusOptions parameter.
undefined focus();
[LegacyNullToEmptyString] attribute DOMString innerText;
readonly attribute long offsetTop;