mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
IDL: Add missing spec links
The only IDL interface without a spec link is Internals
This commit is contained in:
parent
1eae02a018
commit
26e6c47d0a
Notes:
sideshowbarker
2024-07-16 22:58:46 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/26e6c47d0a Pull-request: https://github.com/SerenityOS/serenity/pull/21882
40 changed files with 42 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <DOM/Node.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#callbackdef-nodefilter
|
||||
[Exposed=Window]
|
||||
interface NodeFilter {
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <Geometry/DOMRect.idl>
|
||||
|
||||
// https://drafts.fxtf.org/geometry/#domrectlist
|
||||
[Exposed=Window]
|
||||
interface DOMRectList {
|
||||
getter DOMRect? item(unsigned long index);
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// https://html.spec.whatwg.org/#canvasgradient
|
||||
[Exposed=(Window,Worker)]
|
||||
interface CanvasGradient {
|
||||
// opaque object
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// https://html.spec.whatwg.org/#canvaspattern
|
||||
[Exposed=(Window,Worker)]
|
||||
interface CanvasPattern {
|
||||
// opaque object
|
||||
|
|
|
@ -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 = {});
|
||||
|
|
|
@ -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 = {});
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// https://html.spec.whatwg.org/#domstringmap
|
||||
[Exposed=Window, LegacyOverrideBuiltIns]
|
||||
interface DOMStringMap {
|
||||
getter DOMString (DOMString name);
|
||||
|
|
|
@ -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 = {});
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <DOM/Document.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/#htmldocument
|
||||
[Exposed=Window]
|
||||
interface HTMLDocument : Document {
|
||||
};
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <HTML/Plugin.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/#mimetype
|
||||
[Exposed=Window]
|
||||
interface MimeType {
|
||||
readonly attribute DOMString type;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <HTML/MimeType.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/#mimetypearray
|
||||
[Exposed=Window, LegacyUnenumerableNamedProperties]
|
||||
interface MimeTypeArray {
|
||||
readonly attribute unsigned long length;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <HTML/MimeType.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/#plugin
|
||||
[Exposed=Window, LegacyUnenumerableNamedProperties]
|
||||
interface Plugin {
|
||||
readonly attribute DOMString name;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <HTML/Plugin.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/#pluginarray
|
||||
[Exposed=Window, LegacyUnenumerableNamedProperties]
|
||||
interface PluginArray {
|
||||
undefined refresh();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// https://html.spec.whatwg.org/#storage-2
|
||||
[Exposed=Window]
|
||||
interface Storage {
|
||||
|
||||
|
|
|
@ -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 = {});
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// https://html.spec.whatwg.org/#workerlocation
|
||||
[Exposed=Worker]
|
||||
interface WorkerLocation {
|
||||
stringifier readonly attribute USVString href;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// https://drafts.fxtf.org/css-masking/#InterfaceSVGClipPathElement
|
||||
[Exposed=Window]
|
||||
interface SVGClipPathElement : SVGElement {
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// https://svgwg.org/svg2-draft/single-page.html#struct-InterfaceSVGDefsElement
|
||||
[Exposed=Window]
|
||||
interface SVGDefsElement : SVGGraphicsElement {
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <SVG/SVGAnimatedLength.idl>
|
||||
|
||||
// https://svgwg.org/svg2-draft/single-page.html#embedded-InterfaceSVGForeignObjectElement
|
||||
[Exposed=Window]
|
||||
interface SVGForeignObjectElement : SVGGraphicsElement {
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <SVG/SVGElement.idl>
|
||||
|
||||
// https://svgwg.org/svg2-draft/single-page.html#pservers-InterfaceSVGGradientElement
|
||||
[Exposed=Window]
|
||||
interface SVGGradientElement : SVGElement {
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// https://drafts.fxtf.org/css-masking/#InterfaceSVGMaskElement
|
||||
[Exposed=Window]
|
||||
interface SVGMaskElement : SVGElement {
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <SVG/SVGGeometryElement.idl>
|
||||
|
||||
// https://svgwg.org/svg2-draft/single-page.html#shapes-InterfaceSVGPolygonElement
|
||||
[Exposed=Window]
|
||||
interface SVGPolygonElement : SVGGeometryElement {
|
||||
};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <SVG/SVGGeometryElement.idl>
|
||||
|
||||
// https://svgwg.org/svg2-draft/single-page.html#shapes-InterfaceSVGPolylineElement
|
||||
[Exposed=Window]
|
||||
interface SVGPolylineElement : SVGGeometryElement {
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 = {});
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <WebGL/WebGLRenderingContextBase.idl>
|
||||
|
||||
// https://registry.khronos.org/webgl/specs/latest/1.0/#5.14
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLRenderingContext {
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue