mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:37:47 +00:00
LibWeb: Add comments and missing items of various IDL files
This commit is contained in:
parent
fc46def2f5
commit
169d24ae2e
75 changed files with 233 additions and 129 deletions
|
@ -1,5 +1,6 @@
|
|||
#import <DOM/AbortSignal.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-abortcontroller
|
||||
[Exposed=(Window,Worker)]
|
||||
interface AbortController {
|
||||
constructor();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// https://dom.spec.whatwg.org/#interface-abstractrange
|
||||
[Exposed=Window]
|
||||
interface AbstractRange {
|
||||
readonly attribute Node startContainer;
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// https://dom.spec.whatwg.org/#interface-cdatasection
|
||||
[Exposed=Window]
|
||||
interface CDATASection : Text {
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 = {});
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
interface DocumentFragment : Node {
|
||||
constructor();
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-nonelementparentnode
|
||||
Element? getElementById(DOMString id);
|
||||
};
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <DOM/Element.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-htmlcollection
|
||||
[Exposed=Window, LegacyUnenumerableNamedProperties]
|
||||
interface HTMLCollection {
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#import <DOM/MutationRecord.idl>
|
||||
#import <DOM/Node.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-mutationobserver
|
||||
[Exposed=Window]
|
||||
interface MutationObserver {
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#import <DOM/Node.idl>
|
||||
#import <DOM/NodeList.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-mutationrecord
|
||||
[Exposed=Window]
|
||||
interface MutationRecord {
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#import <DOM/Node.idl>
|
||||
#import <DOM/NodeFilter.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-nodeiterator
|
||||
[Exposed=Window]
|
||||
interface NodeIterator {
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#import <DOM/AbstractRange.idl>
|
||||
#import <Geometry/DOMRect.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-range
|
||||
[Exposed=Window]
|
||||
interface Range : AbstractRange {
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#import <DOM/Node.idl>
|
||||
#import <DOM/NodeFilter.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-treewalker
|
||||
[Exposed=Window]
|
||||
interface TreeWalker {
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <DOM/Document.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#xmldocument
|
||||
[Exposed=Window]
|
||||
interface XMLDocument : Document {
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue