1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

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
parent 1165a94624
commit a062e803c5
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;