ladybird/Userland/Libraries/LibWeb/HTML/HTMLElement.idl
Andrew Kaster a0d5724a58 LibWeb: Add initial implementation of Element.blur()
This implementation includes a first cut at run the unfocusing steps
from the spec, with many things left unimplemented.

The viewport related spec steps in particular don't seem to map to
LibWeb concepts, which makes figuring out if things are properly focused
much more difficult.
2022-10-07 21:17:50 +01:00

33 lines
800 B
Text

#import <HTML/DOMStringMap.idl>
#import <DOM/EventHandler.idl>
interface HTMLElement : Element {
[Reflect] attribute DOMString title;
[Reflect] attribute DOMString lang;
[Reflect] attribute boolean hidden;
attribute DOMString contentEditable;
undefined click();
// FIXME: Support the optional FocusOptions parameter.
undefined focus();
undefined blur();
[LegacyNullToEmptyString] attribute DOMString innerText;
readonly attribute long offsetTop;
readonly attribute long offsetLeft;
readonly attribute long offsetWidth;
readonly attribute long offsetHeight;
};
HTMLElement includes GlobalEventHandlers;
HTMLElement includes HTMLOrSVGElement;
interface mixin HTMLOrSVGElement {
[SameObject] readonly attribute DOMStringMap dataset;
};