mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 11:09:05 +03:00
LibWeb: Add Exposed attribute and IDL spec links where missing
The intent is to use these to autogenerate prototype declarations for Window and WorkerGlobalScope classes. And the spec links are just nice to have :^)
This commit is contained in:
parent
0265041d44
commit
67ceba2e6a
Notes:
sideshowbarker
2024-07-17 08:45:34 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/67ceba2e6a Pull-request: https://github.com/SerenityOS/serenity/pull/15520
@ -1,4 +1,5 @@
|
||||
[]
|
||||
// https://drafts.csswg.org/cssom/#cssstyledeclaration
|
||||
[Exposed=Window]
|
||||
interface CSSStyleDeclaration {
|
||||
|
||||
readonly attribute unsigned long length;
|
||||
|
@ -1,6 +1,8 @@
|
||||
#import <CSS/CSSRule.idl>
|
||||
#import <CSS/CSSRuleList.idl>
|
||||
|
||||
// https://drafts.csswg.org/cssom/#cssstylesheet
|
||||
[Exposed=Window]
|
||||
interface CSSStyleSheet : StyleSheet {
|
||||
// readonly attribute CSSRule? ownerRule;
|
||||
[SameObject] readonly attribute CSSRuleList cssRules;
|
||||
|
@ -1,6 +1,7 @@
|
||||
#import <DOM/Event.idl>
|
||||
|
||||
[]
|
||||
// https://w3c.github.io/csswg-drafts/cssom-view-1/#mediaquerylistevent
|
||||
[Exposed=Window]
|
||||
interface MediaQueryListEvent : Event {
|
||||
constructor(CSSOMString type, optional MediaQueryListEventInit eventInitDict = {});
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
// https://w3c.github.io/csswg-drafts/cssom-view-1/#screen
|
||||
[Exposed=Window]
|
||||
interface Screen {
|
||||
readonly attribute long availWidth;
|
||||
readonly attribute long availHeight;
|
||||
|
@ -2,6 +2,8 @@
|
||||
#import <CSS/MediaList.idl>
|
||||
#import <DOM/Element.idl>
|
||||
|
||||
// https://drafts.csswg.org/cssom/#stylesheet
|
||||
[Exposed=Window]
|
||||
interface StyleSheet {
|
||||
|
||||
readonly attribute Element? ownerNode;
|
||||
|
@ -3,6 +3,7 @@
|
||||
#import <DOM/Node.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#characterdata
|
||||
[Exposed=Window]
|
||||
interface CharacterData : Node {
|
||||
[LegacyNullToEmptyString] attribute DOMString data;
|
||||
readonly attribute unsigned long length;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <DOM/CharacterData.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#comment
|
||||
[Exposed=Window]
|
||||
interface Comment : CharacterData {
|
||||
constructor(optional DOMString data = "");
|
||||
};
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <DOM/Document.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#domimplementation
|
||||
[Exposed=Window]
|
||||
interface DOMImplementation {
|
||||
|
||||
// FIXME: This should return XMLDocument instead of Document.
|
||||
|
@ -1,4 +1,5 @@
|
||||
[]
|
||||
// https://dom.spec.whatwg.org/#interface-domtokenlist
|
||||
[Exposed=Window]
|
||||
interface DOMTokenList {
|
||||
readonly attribute unsigned long length;
|
||||
getter DOMString? item(unsigned long index);
|
||||
|
@ -20,6 +20,7 @@
|
||||
#import <HTML/HTMLScriptElement.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#document
|
||||
[Exposed=Window]
|
||||
interface Document : Node {
|
||||
constructor();
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
#import <DOM/ParentNode.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#documentfragment
|
||||
[Exposed=Window]
|
||||
interface DocumentFragment : Node {
|
||||
constructor();
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
#import <DOM/Node.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#documenttype
|
||||
[Exposed=Window]
|
||||
interface DocumentType : Node {
|
||||
readonly attribute DOMString name;
|
||||
readonly attribute DOMString publicId;
|
||||
|
@ -21,6 +21,7 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
|
||||
};
|
||||
|
||||
// https://dom.spec.whatwg.org/#element
|
||||
[Exposed=Window]
|
||||
interface Element : Node {
|
||||
readonly attribute DOMString? namespaceURI;
|
||||
readonly attribute DOMString? prefix;
|
||||
|
@ -1,6 +1,7 @@
|
||||
#import <DOM/EventTarget.idl>
|
||||
|
||||
[]
|
||||
// https://dom.spec.whatwg.org/#event
|
||||
[Exposed=*]
|
||||
interface Event {
|
||||
|
||||
constructor(DOMString type, optional EventInit eventInitDict = {});
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <DOM/AbortSignal.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#eventtarget
|
||||
[Exposed=*]
|
||||
interface EventTarget {
|
||||
|
||||
undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
|
||||
|
@ -2,6 +2,8 @@
|
||||
#import <DOM/Element.idl>
|
||||
#import <DOM/EventTarget.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#node
|
||||
[Exposed=Window]
|
||||
interface Node : EventTarget {
|
||||
|
||||
readonly attribute unsigned short nodeType;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <DOM/CharacterData.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#processinginstruction
|
||||
[Exposed=Window]
|
||||
interface ProcessingInstruction : CharacterData {
|
||||
readonly attribute DOMString target;
|
||||
};
|
||||
|
@ -2,6 +2,7 @@
|
||||
#import <DOM/InnerHTML.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#shadowroot
|
||||
[Exposed=Window]
|
||||
interface ShadowRoot : DocumentFragment {
|
||||
// FIXME: mode should return a ShadowRootMode
|
||||
readonly attribute DOMString mode;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <DOM/CharacterData.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#text
|
||||
[Exposed=Window]
|
||||
interface Text : CharacterData {
|
||||
constructor(optional DOMString data = "");
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
#import <Geometry/DOMPointReadOnly.idl>
|
||||
|
||||
// https://drafts.fxtf.org/geometry/#dompoint
|
||||
[Exposed=(Window,Worker), Serializable, LegacyWindowAlias=SVGPoint]
|
||||
interface DOMPoint : DOMPointReadOnly {
|
||||
|
||||
constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
||||
|
@ -1,4 +1,5 @@
|
||||
// https://drafts.fxtf.org/geometry/#dompointreadonly
|
||||
[Exposed=(Window,Worker), Serializable]
|
||||
interface DOMPointReadOnly {
|
||||
|
||||
constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <Geometry/DOMRectReadOnly.idl>
|
||||
|
||||
// https://drafts.fxtf.org/geometry/#dompoint
|
||||
[Exposed=(Window,Worker), Serializable, LegacyWindowAlias=SVGRect]
|
||||
interface DOMRect : DOMRectReadOnly {
|
||||
|
||||
constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0);
|
||||
|
@ -1,3 +1,5 @@
|
||||
// https://drafts.fxtf.org/geometry/#domrectreadonly
|
||||
[Exposed=(Window, Worker), Serializable]
|
||||
interface DOMRectReadOnly {
|
||||
|
||||
constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0);
|
||||
|
@ -1,6 +1,6 @@
|
||||
#import <DOM/Event.idl>
|
||||
|
||||
[]
|
||||
[Exposed=*]
|
||||
interface CloseEvent : Event {
|
||||
constructor(DOMString type, optional CloseEventInit eventInitDict = {});
|
||||
|
||||
|
@ -8,6 +8,8 @@ enum DOMParserSupportedType {
|
||||
"image/svg+xml"
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparser
|
||||
[Exposed=Window]
|
||||
interface DOMParser {
|
||||
constructor();
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
#import <HTML/HTMLHyperlinkElementUtils.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/text-level-semantics.html#htmlanchorelement
|
||||
[Exposed=Window]
|
||||
interface HTMLAnchorElement : HTMLElement {
|
||||
// FIXME: [HTMLConstructor] constructor();
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
#import <HTML/HTMLHyperlinkElementUtils.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/image-maps.html#htmlareaelement
|
||||
[Exposed=Window]
|
||||
interface HTMLAreaElement : HTMLElement {
|
||||
// FIXME: [HTMLConstructor] constructor();
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
#import <HTML/HTMLMediaElement.idl>
|
||||
|
||||
[Exposed=Window, LegacyFactoryFunction=Audio(optional DOMString src)]
|
||||
interface HTMLAudioElement : HTMLMediaElement {
|
||||
|
||||
|
||||
|
||||
// FIXME: [HTMLConstructor] constructor();
|
||||
};
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlbrelement
|
||||
[Exposed=Window]
|
||||
interface HTMLBRElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString clear;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlbaseelement
|
||||
[Exposed=Window]
|
||||
interface HTMLBaseElement : HTMLElement {
|
||||
|
||||
[CEReactions] attribute USVString href;
|
||||
|
@ -1,6 +1,8 @@
|
||||
#import <DOM/EventHandler.idl>
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/sections.html#htmlbodyelement
|
||||
[Exposed=Window]
|
||||
interface HTMLBodyElement : HTMLElement {
|
||||
|
||||
[LegacyNullToEmptyString, Reflect] attribute DOMString text;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlbuttonelement
|
||||
[Exposed=Window]
|
||||
interface HTMLButtonElement : HTMLElement {
|
||||
|
||||
[Reflect=formnovalidate] attribute boolean formNoValidate;
|
||||
|
@ -4,6 +4,8 @@
|
||||
|
||||
typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlcanvaselement
|
||||
[Exposed=Window]
|
||||
interface HTMLCanvasElement : HTMLElement {
|
||||
|
||||
RenderingContext? getContext(DOMString contextId, optional any options = null);
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmldlistelement
|
||||
[Exposed=Window]
|
||||
interface HTMLDListElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute boolean compact;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmldataelement
|
||||
[Exposed=Window]
|
||||
interface HTMLDataElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString value;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmldatalistelement
|
||||
[Exposed=Window]
|
||||
interface HTMLDataListElement : HTMLElement {
|
||||
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmldetailselement
|
||||
[Exposed=Window]
|
||||
interface HTMLDetailsElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute boolean open;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmldialogelement
|
||||
[Exposed=Window]
|
||||
interface HTMLDialogElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute boolean open;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmldirectoryelement
|
||||
[Exposed=Window]
|
||||
interface HTMLDirectoryElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute boolean compact;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmldivelement
|
||||
[Exposed=Window]
|
||||
interface HTMLDivElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
@ -1,6 +1,8 @@
|
||||
#import <HTML/DOMStringMap.idl>
|
||||
#import <DOM/EventHandler.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlelement
|
||||
[Exposed=Window]
|
||||
interface HTMLElement : Element {
|
||||
|
||||
[Reflect] attribute DOMString title;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlembedelement
|
||||
[Exposed=Window]
|
||||
interface HTMLEmbedElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString src;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlfieldsetelement
|
||||
[Exposed=Window]
|
||||
interface HTMLFieldSetElement : HTMLElement {
|
||||
|
||||
readonly attribute DOMString type;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlfontelement
|
||||
[Exposed=Window]
|
||||
interface HTMLFontElement : HTMLElement {
|
||||
|
||||
[LegacyNullToEmptyString, Reflect] attribute DOMString color;
|
||||
|
@ -1,6 +1,8 @@
|
||||
#import <DOM/HTMLCollection.idl>
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlformelement
|
||||
[Exposed=Window]
|
||||
interface HTMLFormElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString name;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlframeelement
|
||||
[Exposed=Window]
|
||||
interface HTMLFrameElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString name;
|
||||
|
@ -1,6 +1,8 @@
|
||||
#import <DOM/EventHandler.idl>
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlframesetelement
|
||||
[Exposed=Window]
|
||||
interface HTMLFrameSetElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString cols;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmlhrelement
|
||||
[Exposed=Window]
|
||||
interface HTMLHRElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlheadelement
|
||||
[Exposed=Window]
|
||||
interface HTMLHeadElement : HTMLElement {
|
||||
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlheadingelement
|
||||
[Exposed=Window]
|
||||
interface HTMLHeadingElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlhtmlelement
|
||||
[Exposed=Window]
|
||||
interface HTMLHtmlElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString version;
|
||||
|
@ -1,6 +1,8 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
#import <DOM/Document.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#htmliframeelement
|
||||
[Exposed=Window]
|
||||
interface HTMLIFrameElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString src;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/embedded-content.html#htmlimageelement
|
||||
[Exposed=Window, LegacyFactoryFunction=Image(optional unsigned long width, optional unsigned long height)]
|
||||
interface HTMLImageElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString src;
|
||||
|
@ -2,6 +2,8 @@
|
||||
#import <HTML/HTMLFormElement.idl>
|
||||
#import <FileAPI/FileList.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/input.html#htmlinputelement
|
||||
[Exposed=Window]
|
||||
interface HTMLInputElement : HTMLElement {
|
||||
|
||||
readonly attribute HTMLFormElement? form;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmllielement
|
||||
[Exposed=Window]
|
||||
interface HTMLLIElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString type;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/forms.html#htmllabelelement
|
||||
[Exposed=Window]
|
||||
interface HTMLLabelElement : HTMLElement {
|
||||
|
||||
[Reflect=for] attribute DOMString htmlFor;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#htmllegendelement
|
||||
[Exposed=Window]
|
||||
interface HTMLLegendElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmllinkelement
|
||||
[Exposed=Window]
|
||||
interface HTMLLinkElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString href;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/image-maps.html#htmlmapelement
|
||||
[Exposed=Window]
|
||||
interface HTMLMapElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString name;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/obsolete.html#htmlmarqueeelement
|
||||
[Exposed=Window]
|
||||
interface HTMLMarqueeElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString behavior;
|
||||
|
@ -6,6 +6,8 @@ enum CanPlayTypeResult {
|
||||
"probably"
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#htmlmediaelement
|
||||
[Exposed=Window]
|
||||
interface HTMLMediaElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString src;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmlmenuelement
|
||||
[Exposed=Window]
|
||||
interface HTMLMenuElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute boolean compact;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlmetaelement
|
||||
[Exposed=Window]
|
||||
interface HTMLMetaElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString name;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#htmlmeterelement
|
||||
[Exposed=Window]
|
||||
interface HTMLMeterElement : HTMLElement {
|
||||
|
||||
|
||||
|
@ -1,8 +1,10 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/edits.html#htmlmodelement
|
||||
[Exposed=Window]
|
||||
interface HTMLModElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString cite;
|
||||
[Reflect] attribute USVString cite;
|
||||
[Reflect=datetime] attribute DOMString dateTime;
|
||||
|
||||
};
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmlolistelement
|
||||
[Exposed=Window]
|
||||
interface HTMLOListElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute boolean reversed;
|
||||
|
@ -1,6 +1,8 @@
|
||||
#import <DOM/Document.idl>
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#htmlobjectelement
|
||||
[Exposed=Window]
|
||||
interface HTMLObjectElement : HTMLElement {
|
||||
|
||||
[CEReactions] attribute DOMString data;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#htmloptgroupelement
|
||||
[Exposed=Window]
|
||||
interface HTMLOptGroupElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute boolean disabled;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#htmloptionelement
|
||||
[Exposed=Window, LegacyFactoryFunction=Option(optional DOMString text = "", optional DOMString value, optional boolean defaultSelected = false, optional boolean selected = false)]
|
||||
interface HTMLOptionElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute boolean disabled;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#htmloutputelement
|
||||
[Exposed=Window]
|
||||
interface HTMLOutputElement : HTMLElement {
|
||||
|
||||
readonly attribute DOMString type;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlparagraphelement
|
||||
[Exposed=Window]
|
||||
interface HTMLParagraphElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/obsolete.html#htmlparamelement
|
||||
[Exposed=Window]
|
||||
interface HTMLParamElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString name;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/embedded-content.html#htmlpictureelement
|
||||
[Exposed=Window]
|
||||
interface HTMLPictureElement : HTMLElement {
|
||||
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmlpreelement
|
||||
[Exposed=Window]
|
||||
interface HTMLPreElement : HTMLElement {
|
||||
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#htmlprogresselement
|
||||
[Exposed=Window]
|
||||
interface HTMLProgressElement : HTMLElement {
|
||||
|
||||
[CEReactions] attribute double value;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmlquoteelement
|
||||
[Exposed=Window]
|
||||
interface HTMLQuoteElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString cite;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/scripting.html#htmlscriptelement
|
||||
[Exposed=Window]
|
||||
interface HTMLScriptElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString src;
|
||||
|
@ -1,6 +1,8 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
#import <HTML/HTMLOptionsCollection.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#htmlselectelement
|
||||
[Exposed=Window]
|
||||
interface HTMLSelectElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute boolean disabled;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/scripting.html#htmlslotelement
|
||||
[Exposed=Window]
|
||||
interface HTMLSlotElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString name;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/embedded-content.html#htmlsourceelement
|
||||
[Exposed=Window]
|
||||
interface HTMLSourceElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString src;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/text-level-semantics.html#htmlspanelement
|
||||
[Exposed=Window]
|
||||
interface HTMLSpanElement : HTMLElement {
|
||||
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmlstyleelement
|
||||
[Exposed=Window]
|
||||
interface HTMLStyleElement : HTMLElement {
|
||||
// FIXME: [HTMLConstructor] constructor();
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/tables.html#htmltablecaptionelement
|
||||
[Exposed=Window]
|
||||
interface HTMLTableCaptionElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/tables.html#htmltablecellelement
|
||||
[Exposed=Window]
|
||||
interface HTMLTableCellElement : HTMLElement {
|
||||
|
||||
attribute unsigned long colSpan;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/tables.html#htmltablecolelement
|
||||
[Exposed=Window]
|
||||
interface HTMLTableColElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
@ -4,6 +4,8 @@
|
||||
#import <HTML/HTMLTableSectionElement.idl>
|
||||
#import <DOM/HTMLCollection.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/tables.html#htmltableelement
|
||||
[Exposed=Window]
|
||||
interface HTMLTableElement : HTMLElement {
|
||||
|
||||
attribute HTMLTableCaptionElement? caption;
|
||||
|
@ -1,6 +1,8 @@
|
||||
#import <DOM/HTMLCollection.idl>
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/tables.html#htmltablerowelement
|
||||
[Exposed=Window]
|
||||
interface HTMLTableRowElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
@ -2,6 +2,8 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
#import <HTML/HTMLTableRowElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/tables.html#htmltablesectionelement
|
||||
[Exposed=Window]
|
||||
interface HTMLTableSectionElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
@ -1,6 +1,8 @@
|
||||
#import <DOM/DocumentFragment.idl>
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/scripting.html#htmltemplateelement
|
||||
[Exposed=Window]
|
||||
interface HTMLTemplateElement : HTMLElement {
|
||||
|
||||
readonly attribute DocumentFragment content;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#htmltextareaelement
|
||||
[Exposed=Window]
|
||||
interface HTMLTextAreaElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString placeholder;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/text-level-semantics.html#htmltimeelement
|
||||
[Exposed=Window]
|
||||
interface HTMLTimeElement : HTMLElement {
|
||||
|
||||
[Reflect=datetime] attribute DOMString dateTime;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmltitleelement
|
||||
[Exposed=Window]
|
||||
interface HTMLTitleElement : HTMLElement {
|
||||
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#htmltrackelement
|
||||
[Exposed=Window]
|
||||
interface HTMLTrackElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute DOMString src;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmlulistelement
|
||||
[Exposed=Window]
|
||||
interface HTMLUListElement : HTMLElement {
|
||||
|
||||
[Reflect] attribute boolean compact;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dom.html#htmlunknownelement
|
||||
[Exposed=Window]
|
||||
interface HTMLUnknownElement : HTMLElement {
|
||||
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/HTMLMediaElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#htmlvideoelement
|
||||
[Exposed=Window]
|
||||
interface HTMLVideoElement : HTMLMediaElement {
|
||||
|
||||
[Reflect] attribute DOMString poster;
|
||||
|
@ -1,3 +1,5 @@
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#imagedata
|
||||
[Exposed=(Window,Worker), Serializable]
|
||||
interface ImageData {
|
||||
|
||||
readonly attribute unsigned long width;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <HTML/MessagePort.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/web-messaging.html#messagechannel
|
||||
[Exposed=(Window,Worker)]
|
||||
interface MessageChannel {
|
||||
|
||||
constructor();
|
||||
|
@ -1,6 +1,7 @@
|
||||
#import <DOM/Event.idl>
|
||||
|
||||
[]
|
||||
// https://html.spec.whatwg.org/multipage/comms.html#messageevent
|
||||
[Exposed=(Window,Worker)]
|
||||
interface MessageEvent : Event {
|
||||
constructor(DOMString type, optional MessageEventInit eventInitDict = {});
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
#import <DOM/EventTarget.idl>
|
||||
#import <DOM/EventHandler.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/web-messaging.html#messageport
|
||||
[Exposed=(Window,Worker,AudioWorklet), Transferable]
|
||||
interface MessagePort : EventTarget {
|
||||
|
||||
undefined postMessage(any message);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user