1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +00:00

LibWeb: Add comments and missing items of various IDL files

This commit is contained in:
Bastiaan van der Plaat 2023-10-25 17:27:19 +02:00 committed by Andreas Kling
parent fc46def2f5
commit 169d24ae2e
75 changed files with 233 additions and 129 deletions

View file

@ -1,5 +1,6 @@
#import <DOM/AbortSignal.idl>
// https://dom.spec.whatwg.org/#interface-abortcontroller
[Exposed=(Window,Worker)]
interface AbortController {
constructor();

View file

@ -1,9 +1,12 @@
#import <DOM/EventTarget.idl>
#import <DOM/EventHandler.idl>
// https://dom.spec.whatwg.org/#interface-AbortSignal
[Exposed=(Window,Worker), CustomVisit]
interface AbortSignal : EventTarget {
// FIXME: [NewObject] static AbortSignal abort(optional any reason);
// FIXME: [Exposed=(Window,Worker), NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds);
// FIXME: [NewObject] static AbortSignal _any(sequence<AbortSignal> signals);
readonly attribute boolean aborted;
readonly attribute any reason;

View file

@ -1,3 +1,4 @@
// https://dom.spec.whatwg.org/#interface-abstractrange
[Exposed=Window]
interface AbstractRange {
readonly attribute Node startContainer;

View file

@ -1,6 +1,7 @@
#import <DOM/Node.idl>
#import <DOM/Element.idl>
// https://dom.spec.whatwg.org/#interface-attr
[Exposed=Window]
interface Attr : Node {
readonly attribute DOMString? namespaceURI;
@ -11,5 +12,5 @@ interface Attr : Node {
readonly attribute Element? ownerElement;
readonly attribute boolean specified;
readonly attribute boolean specified; // useless; always returns true
};

View file

@ -1,3 +1,4 @@
// https://dom.spec.whatwg.org/#interface-cdatasection
[Exposed=Window]
interface CDATASection : Text {
};

View file

@ -14,8 +14,9 @@ interface CharacterData : Node {
undefined deleteData(unsigned long offset, unsigned long count);
undefined replaceData(unsigned long offset, unsigned long count, DOMString data);
readonly attribute Element? nextElementSibling;
// https://dom.spec.whatwg.org/#interface-nondocumenttypechildnode
readonly attribute Element? previousElementSibling;
readonly attribute Element? nextElementSibling;
};
CharacterData includes ChildNode;

View file

@ -1,5 +1,6 @@
#import <DOM/Event.idl>
// https://dom.spec.whatwg.org/#interface-customevent
[Exposed=(Window,Worker)]
interface CustomEvent : Event {
constructor(DOMString type, optional CustomEventInit eventInitDict = {});

View file

@ -9,6 +9,7 @@
interface DocumentFragment : Node {
constructor();
// https://dom.spec.whatwg.org/#interface-nonelementparentnode
Element? getElementById(DOMString id);
};

View file

@ -8,7 +8,7 @@ interface Event {
readonly attribute DOMString type;
readonly attribute EventTarget? target;
readonly attribute EventTarget? srcElement;
readonly attribute EventTarget? srcElement; // legacy
readonly attribute EventTarget? currentTarget;
sequence<EventTarget> composedPath();

View file

@ -1,5 +1,6 @@
#import <DOM/Element.idl>
// https://dom.spec.whatwg.org/#interface-htmlcollection
[Exposed=Window, LegacyUnenumerableNamedProperties]
interface HTMLCollection {

View file

@ -1,6 +1,7 @@
#import <DOM/MutationRecord.idl>
#import <DOM/Node.idl>
// https://dom.spec.whatwg.org/#interface-mutationobserver
[Exposed=Window]
interface MutationObserver {

View file

@ -1,6 +1,7 @@
#import <DOM/Node.idl>
#import <DOM/NodeList.idl>
// https://dom.spec.whatwg.org/#interface-mutationrecord
[Exposed=Window]
interface MutationRecord {

View file

@ -1,5 +1,6 @@
#import <DOM/Attr.idl>
// https://dom.spec.whatwg.org/#interface-namednodemap
[Exposed=Window, LegacyUnenumerableNamedProperties]
interface NamedNodeMap {
readonly attribute unsigned long length;

View file

@ -1,6 +1,7 @@
#import <DOM/Node.idl>
#import <DOM/NodeFilter.idl>
// https://dom.spec.whatwg.org/#interface-nodeiterator
[Exposed=Window]
interface NodeIterator {

View file

@ -1,5 +1,6 @@
#import <DOM/Node.idl>
// https://dom.spec.whatwg.org/#interface-nodelist
[Exposed=Window]
interface NodeList {
getter Node? item(unsigned long index);

View file

@ -2,6 +2,7 @@
#import <DOM/AbstractRange.idl>
#import <Geometry/DOMRect.idl>
// https://dom.spec.whatwg.org/#interface-range
[Exposed=Window]
interface Range : AbstractRange {

View file

@ -1,6 +1,7 @@
#import <DOM/Node.idl>
#import <DOM/AbstractRange.idl>
// https://dom.spec.whatwg.org/#staticrange
[Exposed=Window]
interface StaticRange : AbstractRange {
constructor(StaticRangeInit init);

View file

@ -1,6 +1,7 @@
#import <DOM/Node.idl>
#import <DOM/NodeFilter.idl>
// https://dom.spec.whatwg.org/#interface-treewalker
[Exposed=Window]
interface TreeWalker {

View file

@ -1,5 +1,6 @@
#import <DOM/Document.idl>
// https://dom.spec.whatwg.org/#xmldocument
[Exposed=Window]
interface XMLDocument : Document {
};