1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 10:15:08 +00:00
serenity/Libraries/LibWeb/DOM/Element.idl
Nico Weber 2460980d2c LibWeb: Implement Element.innerText
Reading the property has a few warts (see FIXMEs in the included
tests), but with this the timestamps on http://45.33.8.238/
get localized :^)

Since the Date() constructor currently ignores all arguments,
they don't get localized correctly but are all set to the current
time, but hey, it's still progress from a certain point of view.
2020-08-18 16:58:46 +02:00

19 lines
571 B
Text

interface Element : Node {
readonly attribute DOMString tagName;
DOMString? getAttribute(DOMString qualifiedName);
void setAttribute(DOMString qualifiedName, DOMString value);
Element? querySelector(DOMString selectors);
ArrayFromVector querySelectorAll(DOMString selectors);
attribute DOMString innerHTML;
attribute DOMString innerText;
[Reflect] attribute DOMString id;
[Reflect=class] attribute DOMString className;
readonly attribute Element? nextElementSibling;
readonly attribute Element? previousElementSibling;
}