1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +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

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