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
Notes: sideshowbarker 2024-07-17 08:45:34 +09:00
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 {
readonly attribute unsigned long length;

View File

@ -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;

View File

@ -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 = {});

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

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

View File

@ -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.

View File

@ -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);

View File

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

View File

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

View File

@ -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;

View File

@ -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;

View File

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

View File

@ -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 = {});

View File

@ -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;

View File

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

View File

@ -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;

View File

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

View File

@ -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,

View File

@ -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,

View File

@ -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);

View File

@ -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);

View File

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

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

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

View File

@ -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;
};

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

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

View File

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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

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

View File

@ -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();

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

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

View File

@ -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;

View File

@ -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;

View File

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

View File

@ -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;

View File

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

View File

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

View File

@ -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 = {});

View File

@ -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