IDL: Add missing spec links

The only IDL interface without a spec link is Internals
This commit is contained in:
Matthew Olsson 2023-11-07 19:29:22 -07:00 committed by Andreas Kling
parent 1eae02a018
commit 26e6c47d0a
Notes: sideshowbarker 2024-07-16 22:58:46 +09:00
40 changed files with 42 additions and 0 deletions

View file

@ -10,6 +10,7 @@ typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event);
typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
// https://html.spec.whatwg.org/#globaleventhandlers
interface mixin GlobalEventHandlers {
attribute EventHandler onabort;
attribute EventHandler onauxclick;
@ -82,6 +83,7 @@ interface mixin GlobalEventHandlers {
attribute EventHandler onwheel;
};
// https://html.spec.whatwg.org/#windoweventhandlers
interface mixin WindowEventHandlers {
attribute EventHandler onafterprint;
attribute EventHandler onbeforeprint;

View file

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

View file

@ -1,5 +1,6 @@
#import <Geometry/DOMRect.idl>
// https://drafts.fxtf.org/geometry/#domrectlist
[Exposed=Window]
interface DOMRectList {
getter DOMRect? item(unsigned long index);

View file

@ -1,3 +1,4 @@
// https://html.spec.whatwg.org/#canvasgradient
[Exposed=(Window,Worker)]
interface CanvasGradient {
// opaque object

View file

@ -1,3 +1,4 @@
// https://html.spec.whatwg.org/#canvaspattern
[Exposed=(Window,Worker)]
interface CanvasPattern {
// opaque object

View file

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

View file

@ -1,5 +1,6 @@
#import <DOM/Node.idl>
// https://html.spec.whatwg.org/#customelementregistry
[Exposed=Window]
interface CustomElementRegistry {
[CEReactions] undefined define(DOMString name, CustomElementConstructor constructor, optional ElementDefinitionOptions options = {});

View file

@ -1,3 +1,4 @@
// https://html.spec.whatwg.org/#domstringmap
[Exposed=Window, LegacyOverrideBuiltIns]
interface DOMStringMap {
getter DOMString (DOMString name);

View file

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

View file

@ -1,5 +1,6 @@
#import <HTML/HTMLMediaElement.idl>
// https://html.spec.whatwg.org/#htmlaudioelement
[Exposed=Window, LegacyFactoryFunction=Audio(optional DOMString src)]
interface HTMLAudioElement : HTMLMediaElement {
[HTMLConstructor] constructor();

View file

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

View file

@ -48,6 +48,7 @@ HTMLElement includes GlobalEventHandlers;
HTMLElement includes ElementContentEditable;
HTMLElement includes HTMLOrSVGElement;
// https://html.spec.whatwg.org/#elementcontenteditable
interface mixin ElementContentEditable {
[CEReactions] attribute DOMString contentEditable;
// FIXME: [CEReactions] attribute DOMString enterKeyHint;
@ -55,6 +56,7 @@ interface mixin ElementContentEditable {
// FIXME: [CEReactions] attribute DOMString inputMode;
};
// https://html.spec.whatwg.org/#htmlorsvgelement
interface mixin HTMLOrSVGElement {
[SameObject] readonly attribute DOMStringMap dataset;
// FIXME: attribute DOMString nonce; // intentionally no [CEReactions]

View file

@ -2,6 +2,7 @@
#import <HTML/HTMLOptionElement.idl>
#import <HTML/HTMLOptGroupElement.idl>
// https://html.spec.whatwg.org/#htmloptionscollection
[Exposed=Window]
interface HTMLOptionsCollection : HTMLCollection {
// [CEReactions] attribute unsigned long length; // shadows inherited length

View file

@ -1,5 +1,6 @@
#import <HTML/Plugin.idl>
// https://html.spec.whatwg.org/#mimetype
[Exposed=Window]
interface MimeType {
readonly attribute DOMString type;

View file

@ -1,5 +1,6 @@
#import <HTML/MimeType.idl>
// https://html.spec.whatwg.org/#mimetypearray
[Exposed=Window, LegacyUnenumerableNamedProperties]
interface MimeTypeArray {
readonly attribute unsigned long length;

View file

@ -1,6 +1,7 @@
#import <HTML/NavigationType.idl>
#import <HTML/NavigationHistoryEntry.idl>
// https://html.spec.whatwg.org/#navigationtransition
[Exposed=Window]
interface NavigationTransition {
readonly attribute NavigationType navigationType;

View file

@ -1,5 +1,6 @@
#import <HTML/MimeType.idl>
// https://html.spec.whatwg.org/#plugin
[Exposed=Window, LegacyUnenumerableNamedProperties]
interface Plugin {
readonly attribute DOMString name;

View file

@ -1,5 +1,6 @@
#import <HTML/Plugin.idl>
// https://html.spec.whatwg.org/#pluginarray
[Exposed=Window, LegacyUnenumerableNamedProperties]
interface PluginArray {
undefined refresh();

View file

@ -1,5 +1,6 @@
#import <DOM/Event.idl>
// https://html.spec.whatwg.org/#promiserejectionevent
[Exposed=(Window,Worker)]
interface PromiseRejectionEvent : Event {
constructor(DOMString type, PromiseRejectionEventInit eventInitDict);

View file

@ -1,3 +1,4 @@
// https://html.spec.whatwg.org/#storage-2
[Exposed=Window]
interface Storage {

View file

@ -1,6 +1,7 @@
#import <DOM/EventTarget.idl>
#import <DOM/EventHandler.idl>
// https://html.spec.whatwg.org/#worker
[Exposed=(Window)]
interface Worker : EventTarget {
constructor(DOMString scriptURL, optional WorkerOptions options = {});

View file

@ -1,3 +1,4 @@
// https://html.spec.whatwg.org/#workerlocation
[Exposed=Worker]
interface WorkerLocation {
stringifier readonly attribute USVString href;

View file

@ -1,6 +1,7 @@
#import <SVG/SVGAnimatedLength.idl>
#import <SVG/SVGGeometryElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#shapes-InterfaceSVGCircleElement
[Exposed=Window]
interface SVGCircleElement : SVGGeometryElement {
[SameObject] readonly attribute SVGAnimatedLength cx;

View file

@ -1,3 +1,4 @@
// https://drafts.fxtf.org/css-masking/#InterfaceSVGClipPathElement
[Exposed=Window]
interface SVGClipPathElement : SVGElement {

View file

@ -1,3 +1,4 @@
// https://svgwg.org/svg2-draft/single-page.html#struct-InterfaceSVGDefsElement
[Exposed=Window]
interface SVGDefsElement : SVGGraphicsElement {
};

View file

@ -1,6 +1,7 @@
#import <SVG/SVGAnimatedLength.idl>
#import <SVG/SVGGeometryElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#shapes-InterfaceSVGEllipseElement
[Exposed=Window]
interface SVGEllipseElement : SVGGeometryElement {
[SameObject] readonly attribute SVGAnimatedLength cx;

View file

@ -1,5 +1,6 @@
#import <SVG/SVGAnimatedLength.idl>
// https://svgwg.org/svg2-draft/single-page.html#embedded-InterfaceSVGForeignObjectElement
[Exposed=Window]
interface SVGForeignObjectElement : SVGGraphicsElement {

View file

@ -1,5 +1,6 @@
#import <SVG/SVGElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#pservers-InterfaceSVGGradientElement
[Exposed=Window]
interface SVGGradientElement : SVGElement {

View file

@ -1,6 +1,7 @@
#import <SVG/SVGAnimatedLength.idl>
#import <SVG/SVGGeometryElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#shapes-InterfaceSVGLineElement
[Exposed=Window]
interface SVGLineElement : SVGGeometryElement {
[SameObject] readonly attribute SVGAnimatedLength x1;

View file

@ -1,5 +1,6 @@
#import <SVG/SVGGradientElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#pservers-InterfaceSVGLinearGradientElement
[Exposed=Window]
interface SVGLinearGradientElement : SVGGradientElement {
[SameObject] readonly attribute SVGAnimatedLength x1;

View file

@ -1,3 +1,4 @@
// https://drafts.fxtf.org/css-masking/#InterfaceSVGMaskElement
[Exposed=Window]
interface SVGMaskElement : SVGElement {

View file

@ -1,5 +1,6 @@
#import <SVG/SVGGeometryElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#shapes-InterfaceSVGPolygonElement
[Exposed=Window]
interface SVGPolygonElement : SVGGeometryElement {
};

View file

@ -1,5 +1,6 @@
#import <SVG/SVGGeometryElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#shapes-InterfaceSVGPolylineElement
[Exposed=Window]
interface SVGPolylineElement : SVGGeometryElement {
};

View file

@ -1,5 +1,6 @@
#import <SVG/SVGGradientElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#pservers-InterfaceSVGRadialGradientElement
[Exposed=Window]
interface SVGRadialGradientElement : SVGGradientElement {
[SameObject] readonly attribute SVGAnimatedLength cx;

View file

@ -1,6 +1,7 @@
#import <SVG/SVGAnimatedLength.idl>
#import <SVG/SVGGeometryElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#shapes-InterfaceSVGRectElement
[Exposed=Window]
interface SVGRectElement : SVGGeometryElement {
[SameObject] readonly attribute SVGAnimatedLength x;

View file

@ -1,6 +1,7 @@
#import <SVG/SVGElement.idl>
#import <SVG/SVGAnimatedNumber.idl>
// https://svgwg.org/svg2-draft/single-page.html#pservers-InterfaceSVGStopElement
[Exposed=Window]
interface SVGStopElement : SVGElement {
[SameObject] readonly attribute SVGAnimatedNumber offset;

View file

@ -1,6 +1,7 @@
#import <CSS/LinkStyle.idl>
#import <SVG/SVGElement.idl>
// https://svgwg.org/svg2-draft/single-page.html#styling-InterfaceSVGStyleElement
[Exposed=Window]
interface SVGStyleElement : SVGElement {
[Reflect] attribute DOMString type;

View file

@ -1,5 +1,6 @@
#import <DOM/Event.idl>
// https://registry.khronos.org/webgl/specs/latest/1.0/#5.15
[Exposed=(Window,Worker)]
interface WebGLContextEvent : Event {
constructor(DOMString type, optional WebGLContextEventInit eventInit = {});

View file

@ -1,5 +1,6 @@
#import <WebGL/WebGLRenderingContextBase.idl>
// https://registry.khronos.org/webgl/specs/latest/1.0/#5.14
[Exposed=(Window,Worker)]
interface WebGLRenderingContext {
};

View file

@ -13,6 +13,7 @@ dictionary WebGLContextAttributes {
boolean desynchronized = false;
};
// https://registry.khronos.org/webgl/specs/latest/1.0/#5.14
interface mixin WebGLRenderingContextBase {
// NOTE: Functions that have the [WebGLHandlesContextLoss] extended attribute in the spec do not have them here.
// This is because context loss is handled manually on a function by function basis instead of having to add it to the