1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 02:48:11 +00: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:
Andrew Kaster 2022-10-07 16:45:09 -06:00 committed by Andreas Kling
parent 0265041d44
commit 67ceba2e6a
123 changed files with 236 additions and 14 deletions

View file

@ -1,4 +1,5 @@
[] // https://drafts.csswg.org/cssom/#cssstyledeclaration
[Exposed=Window]
interface CSSStyleDeclaration { interface CSSStyleDeclaration {
readonly attribute unsigned long length; readonly attribute unsigned long length;

View file

@ -1,6 +1,8 @@
#import <CSS/CSSRule.idl> #import <CSS/CSSRule.idl>
#import <CSS/CSSRuleList.idl> #import <CSS/CSSRuleList.idl>
// https://drafts.csswg.org/cssom/#cssstylesheet
[Exposed=Window]
interface CSSStyleSheet : StyleSheet { interface CSSStyleSheet : StyleSheet {
// readonly attribute CSSRule? ownerRule; // readonly attribute CSSRule? ownerRule;
[SameObject] readonly attribute CSSRuleList cssRules; [SameObject] readonly attribute CSSRuleList cssRules;

View file

@ -1,6 +1,7 @@
#import <DOM/Event.idl> #import <DOM/Event.idl>
[] // https://w3c.github.io/csswg-drafts/cssom-view-1/#mediaquerylistevent
[Exposed=Window]
interface MediaQueryListEvent : Event { interface MediaQueryListEvent : Event {
constructor(CSSOMString type, optional MediaQueryListEventInit eventInitDict = {}); constructor(CSSOMString type, optional MediaQueryListEventInit eventInitDict = {});

View file

@ -1,3 +1,5 @@
// https://w3c.github.io/csswg-drafts/cssom-view-1/#screen
[Exposed=Window]
interface Screen { interface Screen {
readonly attribute long availWidth; readonly attribute long availWidth;
readonly attribute long availHeight; readonly attribute long availHeight;

View file

@ -2,6 +2,8 @@
#import <CSS/MediaList.idl> #import <CSS/MediaList.idl>
#import <DOM/Element.idl> #import <DOM/Element.idl>
// https://drafts.csswg.org/cssom/#stylesheet
[Exposed=Window]
interface StyleSheet { interface StyleSheet {
readonly attribute Element? ownerNode; readonly attribute Element? ownerNode;

View file

@ -3,6 +3,7 @@
#import <DOM/Node.idl> #import <DOM/Node.idl>
// https://dom.spec.whatwg.org/#characterdata // https://dom.spec.whatwg.org/#characterdata
[Exposed=Window]
interface CharacterData : Node { interface CharacterData : Node {
[LegacyNullToEmptyString] attribute DOMString data; [LegacyNullToEmptyString] attribute DOMString data;
readonly attribute unsigned long length; readonly attribute unsigned long length;

View file

@ -1,5 +1,7 @@
#import <DOM/CharacterData.idl> #import <DOM/CharacterData.idl>
// https://dom.spec.whatwg.org/#comment
[Exposed=Window]
interface Comment : CharacterData { interface Comment : CharacterData {
constructor(optional DOMString data = ""); constructor(optional DOMString data = "");
}; };

View file

@ -1,5 +1,7 @@
#import <DOM/Document.idl> #import <DOM/Document.idl>
// https://dom.spec.whatwg.org/#domimplementation
[Exposed=Window]
interface DOMImplementation { interface DOMImplementation {
// FIXME: This should return XMLDocument instead of Document. // FIXME: This should return XMLDocument instead of Document.

View file

@ -1,4 +1,5 @@
[] // https://dom.spec.whatwg.org/#interface-domtokenlist
[Exposed=Window]
interface DOMTokenList { interface DOMTokenList {
readonly attribute unsigned long length; readonly attribute unsigned long length;
getter DOMString? item(unsigned long index); getter DOMString? item(unsigned long index);

View file

@ -20,6 +20,7 @@
#import <HTML/HTMLScriptElement.idl> #import <HTML/HTMLScriptElement.idl>
// https://dom.spec.whatwg.org/#document // https://dom.spec.whatwg.org/#document
[Exposed=Window]
interface Document : Node { interface Document : Node {
constructor(); constructor();

View file

@ -5,6 +5,7 @@
#import <DOM/ParentNode.idl> #import <DOM/ParentNode.idl>
// https://dom.spec.whatwg.org/#documentfragment // https://dom.spec.whatwg.org/#documentfragment
[Exposed=Window]
interface DocumentFragment : Node { interface DocumentFragment : Node {
constructor(); constructor();

View file

@ -2,6 +2,7 @@
#import <DOM/Node.idl> #import <DOM/Node.idl>
// https://dom.spec.whatwg.org/#documenttype // https://dom.spec.whatwg.org/#documenttype
[Exposed=Window]
interface DocumentType : Node { interface DocumentType : Node {
readonly attribute DOMString name; readonly attribute DOMString name;
readonly attribute DOMString publicId; readonly attribute DOMString publicId;

View file

@ -21,6 +21,7 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
}; };
// https://dom.spec.whatwg.org/#element // https://dom.spec.whatwg.org/#element
[Exposed=Window]
interface Element : Node { interface Element : Node {
readonly attribute DOMString? namespaceURI; readonly attribute DOMString? namespaceURI;
readonly attribute DOMString? prefix; readonly attribute DOMString? prefix;

View file

@ -1,6 +1,7 @@
#import <DOM/EventTarget.idl> #import <DOM/EventTarget.idl>
[] // https://dom.spec.whatwg.org/#event
[Exposed=*]
interface Event { interface Event {
constructor(DOMString type, optional EventInit eventInitDict = {}); constructor(DOMString type, optional EventInit eventInitDict = {});

View file

@ -1,5 +1,7 @@
#import <DOM/AbortSignal.idl> #import <DOM/AbortSignal.idl>
// https://dom.spec.whatwg.org/#eventtarget
[Exposed=*]
interface EventTarget { interface EventTarget {
undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {}); undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});

View file

@ -2,6 +2,8 @@
#import <DOM/Element.idl> #import <DOM/Element.idl>
#import <DOM/EventTarget.idl> #import <DOM/EventTarget.idl>
// https://dom.spec.whatwg.org/#node
[Exposed=Window]
interface Node : EventTarget { interface Node : EventTarget {
readonly attribute unsigned short nodeType; readonly attribute unsigned short nodeType;

View file

@ -1,5 +1,7 @@
#import <DOM/CharacterData.idl> #import <DOM/CharacterData.idl>
// https://dom.spec.whatwg.org/#processinginstruction
[Exposed=Window]
interface ProcessingInstruction : CharacterData { interface ProcessingInstruction : CharacterData {
readonly attribute DOMString target; readonly attribute DOMString target;
}; };

View file

@ -2,6 +2,7 @@
#import <DOM/InnerHTML.idl> #import <DOM/InnerHTML.idl>
// https://dom.spec.whatwg.org/#shadowroot // https://dom.spec.whatwg.org/#shadowroot
[Exposed=Window]
interface ShadowRoot : DocumentFragment { interface ShadowRoot : DocumentFragment {
// FIXME: mode should return a ShadowRootMode // FIXME: mode should return a ShadowRootMode
readonly attribute DOMString mode; readonly attribute DOMString mode;

View file

@ -1,5 +1,7 @@
#import <DOM/CharacterData.idl> #import <DOM/CharacterData.idl>
// https://dom.spec.whatwg.org/#text
[Exposed=Window]
interface Text : CharacterData { interface Text : CharacterData {
constructor(optional DOMString data = ""); constructor(optional DOMString data = "");

View file

@ -1,6 +1,7 @@
#import <Geometry/DOMPointReadOnly.idl> #import <Geometry/DOMPointReadOnly.idl>
// https://drafts.fxtf.org/geometry/#dompoint // https://drafts.fxtf.org/geometry/#dompoint
[Exposed=(Window,Worker), Serializable, LegacyWindowAlias=SVGPoint]
interface DOMPoint : DOMPointReadOnly { interface DOMPoint : DOMPointReadOnly {
constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,

View file

@ -1,4 +1,5 @@
// https://drafts.fxtf.org/geometry/#dompointreadonly // https://drafts.fxtf.org/geometry/#dompointreadonly
[Exposed=(Window,Worker), Serializable]
interface DOMPointReadOnly { interface DOMPointReadOnly {
constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,

View file

@ -1,5 +1,7 @@
#import <Geometry/DOMRectReadOnly.idl> #import <Geometry/DOMRectReadOnly.idl>
// https://drafts.fxtf.org/geometry/#dompoint
[Exposed=(Window,Worker), Serializable, LegacyWindowAlias=SVGRect]
interface DOMRect : DOMRectReadOnly { interface DOMRect : DOMRectReadOnly {
constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0); constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0);

View file

@ -1,3 +1,5 @@
// https://drafts.fxtf.org/geometry/#domrectreadonly
[Exposed=(Window, Worker), Serializable]
interface DOMRectReadOnly { interface DOMRectReadOnly {
constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0); constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0);

View file

@ -1,6 +1,6 @@
#import <DOM/Event.idl> #import <DOM/Event.idl>
[] [Exposed=*]
interface CloseEvent : Event { interface CloseEvent : Event {
constructor(DOMString type, optional CloseEventInit eventInitDict = {}); constructor(DOMString type, optional CloseEventInit eventInitDict = {});

View file

@ -8,6 +8,8 @@ enum DOMParserSupportedType {
"image/svg+xml" "image/svg+xml"
}; };
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparser
[Exposed=Window]
interface DOMParser { interface DOMParser {
constructor(); constructor();

View file

@ -2,6 +2,7 @@
#import <HTML/HTMLHyperlinkElementUtils.idl> #import <HTML/HTMLHyperlinkElementUtils.idl>
// https://html.spec.whatwg.org/multipage/text-level-semantics.html#htmlanchorelement // https://html.spec.whatwg.org/multipage/text-level-semantics.html#htmlanchorelement
[Exposed=Window]
interface HTMLAnchorElement : HTMLElement { interface HTMLAnchorElement : HTMLElement {
// FIXME: [HTMLConstructor] constructor(); // FIXME: [HTMLConstructor] constructor();

View file

@ -2,6 +2,7 @@
#import <HTML/HTMLHyperlinkElementUtils.idl> #import <HTML/HTMLHyperlinkElementUtils.idl>
// https://html.spec.whatwg.org/multipage/image-maps.html#htmlareaelement // https://html.spec.whatwg.org/multipage/image-maps.html#htmlareaelement
[Exposed=Window]
interface HTMLAreaElement : HTMLElement { interface HTMLAreaElement : HTMLElement {
// FIXME: [HTMLConstructor] constructor(); // FIXME: [HTMLConstructor] constructor();

View file

@ -1,7 +1,6 @@
#import <HTML/HTMLMediaElement.idl> #import <HTML/HTMLMediaElement.idl>
[Exposed=Window, LegacyFactoryFunction=Audio(optional DOMString src)]
interface HTMLAudioElement : HTMLMediaElement { interface HTMLAudioElement : HTMLMediaElement {
// FIXME: [HTMLConstructor] constructor();
}; };

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlbrelement
[Exposed=Window]
interface HTMLBRElement : HTMLElement { interface HTMLBRElement : HTMLElement {
[Reflect] attribute DOMString clear; [Reflect] attribute DOMString clear;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlbaseelement
[Exposed=Window]
interface HTMLBaseElement : HTMLElement { interface HTMLBaseElement : HTMLElement {
[CEReactions] attribute USVString href; [CEReactions] attribute USVString href;

View file

@ -1,6 +1,8 @@
#import <DOM/EventHandler.idl> #import <DOM/EventHandler.idl>
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/sections.html#htmlbodyelement
[Exposed=Window]
interface HTMLBodyElement : HTMLElement { interface HTMLBodyElement : HTMLElement {
[LegacyNullToEmptyString, Reflect] attribute DOMString text; [LegacyNullToEmptyString, Reflect] attribute DOMString text;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlbuttonelement
[Exposed=Window]
interface HTMLButtonElement : HTMLElement { interface HTMLButtonElement : HTMLElement {
[Reflect=formnovalidate] attribute boolean formNoValidate; [Reflect=formnovalidate] attribute boolean formNoValidate;

View file

@ -4,6 +4,8 @@
typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext; typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
// https://html.spec.whatwg.org/multipage/semantics.html#htmlcanvaselement
[Exposed=Window]
interface HTMLCanvasElement : HTMLElement { interface HTMLCanvasElement : HTMLElement {
RenderingContext? getContext(DOMString contextId, optional any options = null); RenderingContext? getContext(DOMString contextId, optional any options = null);

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmldlistelement
[Exposed=Window]
interface HTMLDListElement : HTMLElement { interface HTMLDListElement : HTMLElement {
[Reflect] attribute boolean compact; [Reflect] attribute boolean compact;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmldataelement
[Exposed=Window]
interface HTMLDataElement : HTMLElement { interface HTMLDataElement : HTMLElement {
[Reflect] attribute DOMString value; [Reflect] attribute DOMString value;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmldatalistelement
[Exposed=Window]
interface HTMLDataListElement : HTMLElement { interface HTMLDataListElement : HTMLElement {

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmldetailselement
[Exposed=Window]
interface HTMLDetailsElement : HTMLElement { interface HTMLDetailsElement : HTMLElement {
[Reflect] attribute boolean open; [Reflect] attribute boolean open;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmldialogelement
[Exposed=Window]
interface HTMLDialogElement : HTMLElement { interface HTMLDialogElement : HTMLElement {
[Reflect] attribute boolean open; [Reflect] attribute boolean open;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmldirectoryelement
[Exposed=Window]
interface HTMLDirectoryElement : HTMLElement { interface HTMLDirectoryElement : HTMLElement {
[Reflect] attribute boolean compact; [Reflect] attribute boolean compact;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmldivelement
[Exposed=Window]
interface HTMLDivElement : HTMLElement { interface HTMLDivElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;

View file

@ -1,6 +1,8 @@
#import <HTML/DOMStringMap.idl> #import <HTML/DOMStringMap.idl>
#import <DOM/EventHandler.idl> #import <DOM/EventHandler.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlelement
[Exposed=Window]
interface HTMLElement : Element { interface HTMLElement : Element {
[Reflect] attribute DOMString title; [Reflect] attribute DOMString title;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlembedelement
[Exposed=Window]
interface HTMLEmbedElement : HTMLElement { interface HTMLEmbedElement : HTMLElement {
[Reflect] attribute DOMString src; [Reflect] attribute DOMString src;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlfieldsetelement
[Exposed=Window]
interface HTMLFieldSetElement : HTMLElement { interface HTMLFieldSetElement : HTMLElement {
readonly attribute DOMString type; readonly attribute DOMString type;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlfontelement
[Exposed=Window]
interface HTMLFontElement : HTMLElement { interface HTMLFontElement : HTMLElement {
[LegacyNullToEmptyString, Reflect] attribute DOMString color; [LegacyNullToEmptyString, Reflect] attribute DOMString color;

View file

@ -1,6 +1,8 @@
#import <DOM/HTMLCollection.idl> #import <DOM/HTMLCollection.idl>
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlformelement
[Exposed=Window]
interface HTMLFormElement : HTMLElement { interface HTMLFormElement : HTMLElement {
[Reflect] attribute DOMString name; [Reflect] attribute DOMString name;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlframeelement
[Exposed=Window]
interface HTMLFrameElement : HTMLElement { interface HTMLFrameElement : HTMLElement {
[Reflect] attribute DOMString name; [Reflect] attribute DOMString name;

View file

@ -1,6 +1,8 @@
#import <DOM/EventHandler.idl> #import <DOM/EventHandler.idl>
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlframesetelement
[Exposed=Window]
interface HTMLFrameSetElement : HTMLElement { interface HTMLFrameSetElement : HTMLElement {
[Reflect] attribute DOMString cols; [Reflect] attribute DOMString cols;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmlhrelement
[Exposed=Window]
interface HTMLHRElement : HTMLElement { interface HTMLHRElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlheadelement
[Exposed=Window]
interface HTMLHeadElement : HTMLElement { interface HTMLHeadElement : HTMLElement {

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlheadingelement
[Exposed=Window]
interface HTMLHeadingElement : HTMLElement { interface HTMLHeadingElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlhtmlelement
[Exposed=Window]
interface HTMLHtmlElement : HTMLElement { interface HTMLHtmlElement : HTMLElement {
[Reflect] attribute DOMString version; [Reflect] attribute DOMString version;

View file

@ -1,6 +1,8 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
#import <DOM/Document.idl> #import <DOM/Document.idl>
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#htmliframeelement
[Exposed=Window]
interface HTMLIFrameElement : HTMLElement { interface HTMLIFrameElement : HTMLElement {
[Reflect] attribute DOMString src; [Reflect] attribute DOMString src;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #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 { interface HTMLImageElement : HTMLElement {
[Reflect] attribute DOMString src; [Reflect] attribute DOMString src;

View file

@ -2,6 +2,8 @@
#import <HTML/HTMLFormElement.idl> #import <HTML/HTMLFormElement.idl>
#import <FileAPI/FileList.idl> #import <FileAPI/FileList.idl>
// https://html.spec.whatwg.org/multipage/input.html#htmlinputelement
[Exposed=Window]
interface HTMLInputElement : HTMLElement { interface HTMLInputElement : HTMLElement {
readonly attribute HTMLFormElement? form; readonly attribute HTMLFormElement? form;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmllielement
[Exposed=Window]
interface HTMLLIElement : HTMLElement { interface HTMLLIElement : HTMLElement {
[Reflect] attribute DOMString type; [Reflect] attribute DOMString type;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/forms.html#htmllabelelement
[Exposed=Window]
interface HTMLLabelElement : HTMLElement { interface HTMLLabelElement : HTMLElement {
[Reflect=for] attribute DOMString htmlFor; [Reflect=for] attribute DOMString htmlFor;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/form-elements.html#htmllegendelement
[Exposed=Window]
interface HTMLLegendElement : HTMLElement { interface HTMLLegendElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmllinkelement
[Exposed=Window]
interface HTMLLinkElement : HTMLElement { interface HTMLLinkElement : HTMLElement {
[Reflect] attribute DOMString href; [Reflect] attribute DOMString href;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/image-maps.html#htmlmapelement
[Exposed=Window]
interface HTMLMapElement : HTMLElement { interface HTMLMapElement : HTMLElement {
[Reflect] attribute DOMString name; [Reflect] attribute DOMString name;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/obsolete.html#htmlmarqueeelement
[Exposed=Window]
interface HTMLMarqueeElement : HTMLElement { interface HTMLMarqueeElement : HTMLElement {
[Reflect] attribute DOMString behavior; [Reflect] attribute DOMString behavior;

View file

@ -6,6 +6,8 @@ enum CanPlayTypeResult {
"probably" "probably"
}; };
// https://html.spec.whatwg.org/multipage/media.html#htmlmediaelement
[Exposed=Window]
interface HTMLMediaElement : HTMLElement { interface HTMLMediaElement : HTMLElement {
[Reflect] attribute DOMString src; [Reflect] attribute DOMString src;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmlmenuelement
[Exposed=Window]
interface HTMLMenuElement : HTMLElement { interface HTMLMenuElement : HTMLElement {
[Reflect] attribute boolean compact; [Reflect] attribute boolean compact;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlmetaelement
[Exposed=Window]
interface HTMLMetaElement : HTMLElement { interface HTMLMetaElement : HTMLElement {
[Reflect] attribute DOMString name; [Reflect] attribute DOMString name;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/form-elements.html#htmlmeterelement
[Exposed=Window]
interface HTMLMeterElement : HTMLElement { interface HTMLMeterElement : HTMLElement {

View file

@ -1,8 +1,10 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/edits.html#htmlmodelement
[Exposed=Window]
interface HTMLModElement : HTMLElement { interface HTMLModElement : HTMLElement {
[Reflect] attribute DOMString cite; [Reflect] attribute USVString cite;
[Reflect=datetime] attribute DOMString dateTime; [Reflect=datetime] attribute DOMString dateTime;
}; };

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmlolistelement
[Exposed=Window]
interface HTMLOListElement : HTMLElement { interface HTMLOListElement : HTMLElement {
[Reflect] attribute boolean reversed; [Reflect] attribute boolean reversed;

View file

@ -1,6 +1,8 @@
#import <DOM/Document.idl> #import <DOM/Document.idl>
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#htmlobjectelement
[Exposed=Window]
interface HTMLObjectElement : HTMLElement { interface HTMLObjectElement : HTMLElement {
[CEReactions] attribute DOMString data; [CEReactions] attribute DOMString data;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/form-elements.html#htmloptgroupelement
[Exposed=Window]
interface HTMLOptGroupElement : HTMLElement { interface HTMLOptGroupElement : HTMLElement {
[Reflect] attribute boolean disabled; [Reflect] attribute boolean disabled;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #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 { interface HTMLOptionElement : HTMLElement {
[Reflect] attribute boolean disabled; [Reflect] attribute boolean disabled;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/form-elements.html#htmloutputelement
[Exposed=Window]
interface HTMLOutputElement : HTMLElement { interface HTMLOutputElement : HTMLElement {
readonly attribute DOMString type; readonly attribute DOMString type;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlparagraphelement
[Exposed=Window]
interface HTMLParagraphElement : HTMLElement { interface HTMLParagraphElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/obsolete.html#htmlparamelement
[Exposed=Window]
interface HTMLParamElement : HTMLElement { interface HTMLParamElement : HTMLElement {
[Reflect] attribute DOMString name; [Reflect] attribute DOMString name;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/embedded-content.html#htmlpictureelement
[Exposed=Window]
interface HTMLPictureElement : HTMLElement { interface HTMLPictureElement : HTMLElement {

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmlpreelement
[Exposed=Window]
interface HTMLPreElement : HTMLElement { interface HTMLPreElement : HTMLElement {

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/form-elements.html#htmlprogresselement
[Exposed=Window]
interface HTMLProgressElement : HTMLElement { interface HTMLProgressElement : HTMLElement {
[CEReactions] attribute double value; [CEReactions] attribute double value;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmlquoteelement
[Exposed=Window]
interface HTMLQuoteElement : HTMLElement { interface HTMLQuoteElement : HTMLElement {
[Reflect] attribute DOMString cite; [Reflect] attribute DOMString cite;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/scripting.html#htmlscriptelement
[Exposed=Window]
interface HTMLScriptElement : HTMLElement { interface HTMLScriptElement : HTMLElement {
[Reflect] attribute DOMString src; [Reflect] attribute DOMString src;

View file

@ -1,6 +1,8 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
#import <HTML/HTMLOptionsCollection.idl> #import <HTML/HTMLOptionsCollection.idl>
// https://html.spec.whatwg.org/multipage/form-elements.html#htmlselectelement
[Exposed=Window]
interface HTMLSelectElement : HTMLElement { interface HTMLSelectElement : HTMLElement {
[Reflect] attribute boolean disabled; [Reflect] attribute boolean disabled;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/scripting.html#htmlslotelement
[Exposed=Window]
interface HTMLSlotElement : HTMLElement { interface HTMLSlotElement : HTMLElement {
[Reflect] attribute DOMString name; [Reflect] attribute DOMString name;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/embedded-content.html#htmlsourceelement
[Exposed=Window]
interface HTMLSourceElement : HTMLElement { interface HTMLSourceElement : HTMLElement {
[Reflect] attribute DOMString src; [Reflect] attribute DOMString src;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/text-level-semantics.html#htmlspanelement
[Exposed=Window]
interface HTMLSpanElement : HTMLElement { interface HTMLSpanElement : HTMLElement {

View file

@ -3,6 +3,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmlstyleelement // https://html.spec.whatwg.org/multipage/semantics.html#htmlstyleelement
[Exposed=Window]
interface HTMLStyleElement : HTMLElement { interface HTMLStyleElement : HTMLElement {
// FIXME: [HTMLConstructor] constructor(); // FIXME: [HTMLConstructor] constructor();

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/tables.html#htmltablecaptionelement
[Exposed=Window]
interface HTMLTableCaptionElement : HTMLElement { interface HTMLTableCaptionElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/tables.html#htmltablecellelement
[Exposed=Window]
interface HTMLTableCellElement : HTMLElement { interface HTMLTableCellElement : HTMLElement {
attribute unsigned long colSpan; attribute unsigned long colSpan;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/tables.html#htmltablecolelement
[Exposed=Window]
interface HTMLTableColElement : HTMLElement { interface HTMLTableColElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;

View file

@ -4,6 +4,8 @@
#import <HTML/HTMLTableSectionElement.idl> #import <HTML/HTMLTableSectionElement.idl>
#import <DOM/HTMLCollection.idl> #import <DOM/HTMLCollection.idl>
// https://html.spec.whatwg.org/multipage/tables.html#htmltableelement
[Exposed=Window]
interface HTMLTableElement : HTMLElement { interface HTMLTableElement : HTMLElement {
attribute HTMLTableCaptionElement? caption; attribute HTMLTableCaptionElement? caption;

View file

@ -1,6 +1,8 @@
#import <DOM/HTMLCollection.idl> #import <DOM/HTMLCollection.idl>
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/tables.html#htmltablerowelement
[Exposed=Window]
interface HTMLTableRowElement : HTMLElement { interface HTMLTableRowElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;

View file

@ -2,6 +2,8 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
#import <HTML/HTMLTableRowElement.idl> #import <HTML/HTMLTableRowElement.idl>
// https://html.spec.whatwg.org/multipage/tables.html#htmltablesectionelement
[Exposed=Window]
interface HTMLTableSectionElement : HTMLElement { interface HTMLTableSectionElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;

View file

@ -1,6 +1,8 @@
#import <DOM/DocumentFragment.idl> #import <DOM/DocumentFragment.idl>
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/scripting.html#htmltemplateelement
[Exposed=Window]
interface HTMLTemplateElement : HTMLElement { interface HTMLTemplateElement : HTMLElement {
readonly attribute DocumentFragment content; readonly attribute DocumentFragment content;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/form-elements.html#htmltextareaelement
[Exposed=Window]
interface HTMLTextAreaElement : HTMLElement { interface HTMLTextAreaElement : HTMLElement {
[Reflect] attribute DOMString placeholder; [Reflect] attribute DOMString placeholder;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/text-level-semantics.html#htmltimeelement
[Exposed=Window]
interface HTMLTimeElement : HTMLElement { interface HTMLTimeElement : HTMLElement {
[Reflect=datetime] attribute DOMString dateTime; [Reflect=datetime] attribute DOMString dateTime;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/semantics.html#htmltitleelement
[Exposed=Window]
interface HTMLTitleElement : HTMLElement { interface HTMLTitleElement : HTMLElement {

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/media.html#htmltrackelement
[Exposed=Window]
interface HTMLTrackElement : HTMLElement { interface HTMLTrackElement : HTMLElement {
[Reflect] attribute DOMString src; [Reflect] attribute DOMString src;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/grouping-content.html#htmlulistelement
[Exposed=Window]
interface HTMLUListElement : HTMLElement { interface HTMLUListElement : HTMLElement {
[Reflect] attribute boolean compact; [Reflect] attribute boolean compact;

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/dom.html#htmlunknownelement
[Exposed=Window]
interface HTMLUnknownElement : HTMLElement { interface HTMLUnknownElement : HTMLElement {

View file

@ -1,5 +1,7 @@
#import <HTML/HTMLMediaElement.idl> #import <HTML/HTMLMediaElement.idl>
// https://html.spec.whatwg.org/multipage/media.html#htmlvideoelement
[Exposed=Window]
interface HTMLVideoElement : HTMLMediaElement { interface HTMLVideoElement : HTMLMediaElement {
[Reflect] attribute DOMString poster; [Reflect] attribute DOMString poster;

View file

@ -1,3 +1,5 @@
// https://html.spec.whatwg.org/multipage/canvas.html#imagedata
[Exposed=(Window,Worker), Serializable]
interface ImageData { interface ImageData {
readonly attribute unsigned long width; readonly attribute unsigned long width;

View file

@ -1,5 +1,7 @@
#import <HTML/MessagePort.idl> #import <HTML/MessagePort.idl>
// https://html.spec.whatwg.org/multipage/web-messaging.html#messagechannel
[Exposed=(Window,Worker)]
interface MessageChannel { interface MessageChannel {
constructor(); constructor();

View file

@ -1,6 +1,7 @@
#import <DOM/Event.idl> #import <DOM/Event.idl>
[] // https://html.spec.whatwg.org/multipage/comms.html#messageevent
[Exposed=(Window,Worker)]
interface MessageEvent : Event { interface MessageEvent : Event {
constructor(DOMString type, optional MessageEventInit eventInitDict = {}); constructor(DOMString type, optional MessageEventInit eventInitDict = {});

View file

@ -1,6 +1,8 @@
#import <DOM/EventTarget.idl> #import <DOM/EventTarget.idl>
#import <DOM/EventHandler.idl> #import <DOM/EventHandler.idl>
// https://html.spec.whatwg.org/multipage/web-messaging.html#messageport
[Exposed=(Window,Worker,AudioWorklet), Transferable]
interface MessagePort : EventTarget { interface MessagePort : EventTarget {
undefined postMessage(any message); undefined postMessage(any message);

Some files were not shown because too many files have changed in this diff Show more