1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 05:45:07 +00:00

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
40 changed files with 42 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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