Rename legacy extended attributes in webidls

https://github.com/whatwg/webidl/pull/870
This commit is contained in:
sagudev 2023-02-19 14:05:45 +01:00
parent 2acdeabaf5
commit 55dac83d9a
51 changed files with 83 additions and 83 deletions

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/ * https://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface ANGLEInstancedArrays { interface ANGLEInstancedArrays {
const GLenum VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE; const GLenum VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE;
undefined drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount); undefined drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount);

View file

@ -17,8 +17,8 @@ interface CSSStyleDeclaration {
DOMString getPropertyValue(DOMString property); DOMString getPropertyValue(DOMString property);
DOMString getPropertyPriority(DOMString property); DOMString getPropertyPriority(DOMString property);
[CEReactions, Throws] [CEReactions, Throws]
undefined setProperty(DOMString property, [TreatNullAs=EmptyString] DOMString value, undefined setProperty(DOMString property, [LegacyNullToEmptyString] DOMString value,
optional [TreatNullAs=EmptyString] DOMString priority = ""); optional [LegacyNullToEmptyString] DOMString priority = "");
[CEReactions, Throws] [CEReactions, Throws]
DOMString removeProperty(DOMString property); DOMString removeProperty(DOMString property);
// readonly attribute CSSRule? parentRule; // readonly attribute CSSRule? parentRule;

View file

@ -93,7 +93,7 @@ interface mixin CanvasFillStrokeStyles {
[Throws] [Throws]
CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1); CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
[Throws] [Throws]
CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition); CanvasPattern? createPattern(CanvasImageSource image, [LegacyNullToEmptyString] DOMString repetition);
}; };
[Exposed=(PaintWorklet, Window, Worker)] [Exposed=(PaintWorklet, Window, Worker)]

View file

@ -11,7 +11,7 @@
[Exposed=Window, Abstract] [Exposed=Window, Abstract]
interface CharacterData : Node { interface CharacterData : Node {
[Pure] attribute [TreatNullAs=EmptyString] DOMString data; [Pure] attribute [LegacyNullToEmptyString] DOMString data;
[Pure] readonly attribute unsigned long length; [Pure] readonly attribute unsigned long length;
[Pure, Throws] [Pure, Throws]
DOMString substringData(unsigned long offset, unsigned long count); DOMString substringData(unsigned long offset, unsigned long count);

View file

@ -17,7 +17,7 @@ interface DOMImplementation {
DOMString systemId); DOMString systemId);
[NewObject, Throws] [NewObject, Throws]
XMLDocument createDocument(DOMString? namespace, XMLDocument createDocument(DOMString? namespace,
[TreatNullAs=EmptyString] DOMString qualifiedName, [LegacyNullToEmptyString] DOMString qualifiedName,
optional DocumentType? doctype = null); optional DocumentType? doctype = null);
[NewObject] [NewObject]
Document createHTMLDocument(optional DOMString title); Document createHTMLDocument(optional DOMString title);

View file

@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#the-domstringmap-interface // https://html.spec.whatwg.org/multipage/#the-domstringmap-interface
[Exposed=Window, OverrideBuiltins] [Exposed=Window, LegacyOverrideBuiltIns]
interface DOMStringMap { interface DOMStringMap {
getter DOMString (DOMString name); getter DOMString (DOMString name);
[CEReactions, Throws] [CEReactions, Throws]

View file

@ -14,7 +14,7 @@
// way to enforce security policy. // way to enforce security policy.
// https://html.spec.whatwg.org/multipage/#location // https://html.spec.whatwg.org/multipage/#location
[Exposed=(Window,DissimilarOriginWindow), Unforgeable, NoInterfaceObject] [Exposed=(Window,DissimilarOriginWindow), LegacyUnforgeable, LegacyNoInterfaceObject]
interface DissimilarOriginLocation { interface DissimilarOriginLocation {
[Throws] attribute USVString href; [Throws] attribute USVString href;
[Throws] undefined assign(USVString url); [Throws] undefined assign(USVString url);

View file

@ -13,15 +13,15 @@
// way to enforce security policy. // way to enforce security policy.
// https://html.spec.whatwg.org/multipage/#window // https://html.spec.whatwg.org/multipage/#window
[Global, Exposed=(Window,DissimilarOriginWindow), NoInterfaceObject] [Global, Exposed=(Window,DissimilarOriginWindow), LegacyNoInterfaceObject]
interface DissimilarOriginWindow : GlobalScope { interface DissimilarOriginWindow : GlobalScope {
[Unforgeable] readonly attribute WindowProxy window; [LegacyUnforgeable] readonly attribute WindowProxy window;
[BinaryName="Self_", Replaceable] readonly attribute WindowProxy self; [BinaryName="Self_", Replaceable] readonly attribute WindowProxy self;
[Unforgeable] readonly attribute WindowProxy? parent; [LegacyUnforgeable] readonly attribute WindowProxy? parent;
[Unforgeable] readonly attribute WindowProxy? top; [LegacyUnforgeable] readonly attribute WindowProxy? top;
[Replaceable] readonly attribute WindowProxy frames; [Replaceable] readonly attribute WindowProxy frames;
[Replaceable] readonly attribute unsigned long length; [Replaceable] readonly attribute unsigned long length;
[Unforgeable] readonly attribute DissimilarOriginLocation location; [LegacyUnforgeable] readonly attribute DissimilarOriginLocation location;
undefined close(); undefined close();
readonly attribute boolean closed; readonly attribute boolean closed;

View file

@ -84,10 +84,10 @@ dictionary ElementCreationOptions {
}; };
// https://html.spec.whatwg.org/multipage/#the-document-object // https://html.spec.whatwg.org/multipage/#the-document-object
// [OverrideBuiltins] // [LegacyOverrideBuiltIns]
partial /*sealed*/ interface Document { partial /*sealed*/ interface Document {
// resource metadata management // resource metadata management
[PutForwards=href, Unforgeable] [PutForwards=href, LegacyUnforgeable]
readonly attribute Location? location; readonly attribute Location? location;
[SetterThrows] attribute DOMString domain; [SetterThrows] attribute DOMString domain;
readonly attribute DOMString referrer; readonly attribute DOMString referrer;
@ -146,7 +146,7 @@ partial /*sealed*/ interface Document {
// DOMString queryCommandValue(DOMString commandId); // DOMString queryCommandValue(DOMString commandId);
// special event handler IDL attributes that only apply to Document objects // special event handler IDL attributes that only apply to Document objects
[LenientThis] attribute EventHandler onreadystatechange; [LegacyLenientThis] attribute EventHandler onreadystatechange;
// also has obsolete members // also has obsolete members
}; };
@ -156,22 +156,22 @@ Document includes DocumentAndElementEventHandlers;
// https://html.spec.whatwg.org/multipage/#Document-partial // https://html.spec.whatwg.org/multipage/#Document-partial
partial interface Document { partial interface Document {
[CEReactions] [CEReactions]
attribute [TreatNullAs=EmptyString] DOMString fgColor; attribute [LegacyNullToEmptyString] DOMString fgColor;
// https://github.com/servo/servo/issues/8715 // https://github.com/servo/servo/issues/8715
// [CEReactions, TreatNullAs=EmptyString] // [CEReactions, LegacyNullToEmptyString]
// attribute DOMString linkColor; // attribute DOMString linkColor;
// https://github.com/servo/servo/issues/8716 // https://github.com/servo/servo/issues/8716
// [CEReactions, TreatNullAs=EmptyString] // [CEReactions, LegacyNullToEmptyString]
// attribute DOMString vlinkColor; // attribute DOMString vlinkColor;
// https://github.com/servo/servo/issues/8717 // https://github.com/servo/servo/issues/8717
// [CEReactions, TreatNullAs=EmptyString] // [CEReactions, LegacyNullToEmptyString]
// attribute DOMString alinkColor; // attribute DOMString alinkColor;
[CEReactions] [CEReactions]
attribute [TreatNullAs=EmptyString] DOMString bgColor; attribute [LegacyNullToEmptyString] DOMString bgColor;
[SameObject] [SameObject]
readonly attribute HTMLCollection anchors; readonly attribute HTMLCollection anchors;
@ -189,9 +189,9 @@ partial interface Document {
// https://fullscreen.spec.whatwg.org/#api // https://fullscreen.spec.whatwg.org/#api
partial interface Document { partial interface Document {
[LenientSetter] readonly attribute boolean fullscreenEnabled; [LegacyLenientSetter] readonly attribute boolean fullscreenEnabled;
[LenientSetter] readonly attribute Element? fullscreenElement; [LegacyLenientSetter] readonly attribute Element? fullscreenElement;
[LenientSetter] readonly attribute boolean fullscreen; // historical [LegacyLenientSetter] readonly attribute boolean fullscreen; // historical
Promise<undefined> exitFullscreen(); Promise<undefined> exitFullscreen();

View file

@ -7,7 +7,7 @@
* so that we can hold a traceable owner for those dynamic modules which don't hold a owner. * so that we can hold a traceable owner for those dynamic modules which don't hold a owner.
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface DynamicModuleOwner { interface DynamicModuleOwner {
readonly attribute Promise<any> promise; readonly attribute Promise<any> promise;
}; };

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/EXT_blend_minmax/ * https://www.khronos.org/registry/webgl/extensions/EXT_blend_minmax/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface EXTBlendMinmax { interface EXTBlendMinmax {
const GLenum MIN_EXT = 0x8007; const GLenum MIN_EXT = 0x8007;
const GLenum MAX_EXT = 0x8008; const GLenum MAX_EXT = 0x8008;

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_half_float/ * https://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_half_float/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface EXTColorBufferHalfFloat { interface EXTColorBufferHalfFloat {
const GLenum RGBA16F_EXT = 0x881A; const GLenum RGBA16F_EXT = 0x881A;
const GLenum RGB16F_EXT = 0x881B; const GLenum RGB16F_EXT = 0x881B;

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ * https://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface EXTFragDepth { interface EXTFragDepth {
}; // interface EXT_frag_depth }; // interface EXT_frag_depth

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/EXT_shader_texture_lod/ * https://www.khronos.org/registry/webgl/extensions/EXT_shader_texture_lod/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface EXTShaderTextureLod { interface EXTShaderTextureLod {
}; };

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotropic/ * https://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotropic/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface EXTTextureFilterAnisotropic { interface EXTTextureFilterAnisotropic {
const GLenum TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; const GLenum TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
const GLenum MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; const GLenum MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;

View file

@ -113,9 +113,9 @@ partial interface Element {
// https://w3c.github.io/DOM-Parsing/#extensions-to-the-element-interface // https://w3c.github.io/DOM-Parsing/#extensions-to-the-element-interface
partial interface Element { partial interface Element {
[CEReactions, Throws] [CEReactions, Throws]
attribute [TreatNullAs=EmptyString] DOMString innerHTML; attribute [LegacyNullToEmptyString] DOMString innerHTML;
[CEReactions, Throws] [CEReactions, Throws]
attribute [TreatNullAs=EmptyString] DOMString outerHTML; attribute [LegacyNullToEmptyString] DOMString outerHTML;
}; };
// https://fullscreen.spec.whatwg.org/#api // https://fullscreen.spec.whatwg.org/#api

View file

@ -34,7 +34,7 @@ interface Event {
[Pure] [Pure]
readonly attribute boolean defaultPrevented; readonly attribute boolean defaultPrevented;
[Unforgeable] [LegacyUnforgeable]
readonly attribute boolean isTrusted; readonly attribute boolean isTrusted;
[Constant] [Constant]
readonly attribute DOMHighResTimeStamp timeStamp; readonly attribute DOMHighResTimeStamp timeStamp;

View file

@ -10,17 +10,17 @@
* and create derivative works of this document. * and create derivative works of this document.
*/ */
[TreatNonObjectAsNull] [LegacyTreatNonObjectAsNull]
callback EventHandlerNonNull = any (Event event); callback EventHandlerNonNull = any (Event event);
typedef EventHandlerNonNull? EventHandler; typedef EventHandlerNonNull? EventHandler;
[TreatNonObjectAsNull] [LegacyTreatNonObjectAsNull]
callback OnErrorEventHandlerNonNull = any ((Event or DOMString) event, optional DOMString source, callback OnErrorEventHandlerNonNull = any ((Event or DOMString) event, optional DOMString source,
optional unsigned long lineno, optional unsigned long column, optional unsigned long lineno, optional unsigned long column,
optional any error); optional any error);
typedef OnErrorEventHandlerNonNull? OnErrorEventHandler; typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
[TreatNonObjectAsNull] [LegacyTreatNonObjectAsNull]
callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event); callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event);
typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler; typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
@ -62,8 +62,8 @@ interface mixin GlobalEventHandlers {
attribute EventHandler onloadedmetadata; attribute EventHandler onloadedmetadata;
attribute EventHandler onloadstart; attribute EventHandler onloadstart;
attribute EventHandler onmousedown; attribute EventHandler onmousedown;
[LenientThis] attribute EventHandler onmouseenter; [LegacyLenientThis] attribute EventHandler onmouseenter;
[LenientThis] attribute EventHandler onmouseleave; [LegacyLenientThis] attribute EventHandler onmouseleave;
attribute EventHandler onmousemove; attribute EventHandler onmousemove;
attribute EventHandler onmouseout; attribute EventHandler onmouseout;
attribute EventHandler onmouseover; attribute EventHandler onmouseover;

View file

@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmlaudioelement // https://html.spec.whatwg.org/multipage/#htmlaudioelement
[Exposed=Window, NamedConstructor=Audio(optional DOMString src)] [Exposed=Window, LegacyFactoryFunction=Audio(optional DOMString src)]
interface HTMLAudioElement : HTMLMediaElement { interface HTMLAudioElement : HTMLMediaElement {
[HTMLConstructor] constructor(); [HTMLConstructor] constructor();
}; };

View file

@ -13,17 +13,17 @@ HTMLBodyElement includes WindowEventHandlers;
// https://html.spec.whatwg.org/multipage/#HTMLBodyElement-partial // https://html.spec.whatwg.org/multipage/#HTMLBodyElement-partial
partial interface HTMLBodyElement { partial interface HTMLBodyElement {
[CEReactions] attribute [TreatNullAs=EmptyString] DOMString text; [CEReactions] attribute [LegacyNullToEmptyString] DOMString text;
// https://github.com/servo/servo/issues/8715 // https://github.com/servo/servo/issues/8715
//[CEReactions, TreatNullAs=EmptyString] attribute DOMString link; //[CEReactions, LegacyNullToEmptyString] attribute DOMString link;
// https://github.com/servo/servo/issues/8716 // https://github.com/servo/servo/issues/8716
//[CEReactions, TreatNullAs=EmptyString] attribute DOMString vLink; //[CEReactions, LegacyNullToEmptyString] attribute DOMString vLink;
// https://github.com/servo/servo/issues/8717 // https://github.com/servo/servo/issues/8717
//[CEReactions, TreatNullAs=EmptyString] attribute DOMString aLink; //[CEReactions, LegacyNullToEmptyString] attribute DOMString aLink;
[CEReactions] attribute [TreatNullAs=EmptyString] DOMString bgColor; [CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
[CEReactions] attribute DOMString background; [CEReactions] attribute DOMString background;
}; };

View file

@ -48,7 +48,7 @@ interface HTMLElement : Element {
// attribute boolean spellcheck; // attribute boolean spellcheck;
// void forceSpellCheck(); // void forceSpellCheck();
attribute [TreatNullAs=EmptyString] DOMString innerText; attribute [LegacyNullToEmptyString] DOMString innerText;
// command API // command API
// readonly attribute DOMString? commandType; // readonly attribute DOMString? commandType;

View file

@ -8,7 +8,7 @@ interface HTMLFontElement : HTMLElement {
[HTMLConstructor] constructor(); [HTMLConstructor] constructor();
[CEReactions] [CEReactions]
attribute [TreatNullAs=EmptyString] DOMString color; attribute [LegacyNullToEmptyString] DOMString color;
[CEReactions] [CEReactions]
attribute DOMString face; attribute DOMString face;
[CEReactions] [CEReactions]

View file

@ -22,8 +22,8 @@ interface HTMLFrameElement : HTMLElement {
// readonly attribute Document? contentDocument; // readonly attribute Document? contentDocument;
// readonly attribute WindowProxy? contentWindow; // readonly attribute WindowProxy? contentWindow;
// [CEReactions, TreatNullAs=EmptyString] // [CEReactions, LegacyNullToEmptyString]
// attribute DOMString marginHeight; // attribute DOMString marginHeight;
// [CEReactions, TreatNullAs=EmptyString] // [CEReactions, LegacyNullToEmptyString]
// attribute DOMString marginWidth; // attribute DOMString marginWidth;
}; };

View file

@ -42,8 +42,8 @@ partial interface HTMLIFrameElement {
// [CEReactions] // [CEReactions]
// attribute DOMString longDesc; // attribute DOMString longDesc;
// [CEReactions, TreatNullAs=EmptyString] // [CEReactions, LegacyNullToEmptyString]
// attribute DOMString marginHeight; // attribute DOMString marginHeight;
// [CEReactions, TreatNullAs=EmptyString] // [CEReactions, LegacyNullToEmptyString]
// attribute DOMString marginWidth; // attribute DOMString marginWidth;
}; };

View file

@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmlimageelement // https://html.spec.whatwg.org/multipage/#htmlimageelement
[Exposed=Window, NamedConstructor=Image(optional unsigned long width, optional unsigned long height)] [Exposed=Window, LegacyFactoryFunction=Image(optional unsigned long width, optional unsigned long height)]
interface HTMLImageElement : HTMLElement { interface HTMLImageElement : HTMLElement {
[HTMLConstructor] constructor(); [HTMLConstructor] constructor();
@ -48,7 +48,7 @@ partial interface HTMLImageElement {
attribute DOMString longDesc; attribute DOMString longDesc;
[CEReactions] [CEReactions]
attribute [TreatNullAs=EmptyString] DOMString border; attribute [LegacyNullToEmptyString] DOMString border;
}; };
// https://drafts.csswg.org/cssom-view/#extensions-to-the-htmlimageelement-interface // https://drafts.csswg.org/cssom-view/#extensions-to-the-htmlimageelement-interface

View file

@ -71,7 +71,7 @@ interface HTMLInputElement : HTMLElement {
[CEReactions] [CEReactions]
attribute DOMString defaultValue; attribute DOMString defaultValue;
[CEReactions, SetterThrows] [CEReactions, SetterThrows]
attribute [TreatNullAs=EmptyString] DOMString value; attribute [LegacyNullToEmptyString] DOMString value;
[SetterThrows] [SetterThrows]
attribute object? valueAsDate; attribute object? valueAsDate;
[SetterThrows] [SetterThrows]

View file

@ -49,5 +49,5 @@ partial interface HTMLObjectElement {
// attribute DOMString codeBase; // attribute DOMString codeBase;
// attribute DOMString codeType; // attribute DOMString codeType;
//[TreatNullAs=EmptyString] attribute DOMString border; //[LegacyNullToEmptyString] attribute DOMString border;
}; };

View file

@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmloptionelement // https://html.spec.whatwg.org/multipage/#htmloptionelement
[Exposed=Window, NamedConstructor=Option(optional DOMString text = "", optional DOMString value, [Exposed=Window, LegacyFactoryFunction=Option(optional DOMString text = "", optional DOMString value,
optional boolean defaultSelected = false, optional boolean defaultSelected = false,
optional boolean selected = false)] optional boolean selected = false)]
interface HTMLOptionElement : HTMLElement { interface HTMLOptionElement : HTMLElement {

View file

@ -43,5 +43,5 @@ partial interface HTMLTableCellElement {
// attribute DOMString vAlign; // attribute DOMString vAlign;
[CEReactions] [CEReactions]
attribute [TreatNullAs=EmptyString] DOMString bgColor; attribute [LegacyNullToEmptyString] DOMString bgColor;
}; };

View file

@ -51,9 +51,9 @@ partial interface HTMLTableElement {
attribute DOMString width; attribute DOMString width;
[CEReactions] [CEReactions]
attribute [TreatNullAs=EmptyString] DOMString bgColor; attribute [LegacyNullToEmptyString] DOMString bgColor;
// [CEReactions, TreatNullAs=EmptyString] // [CEReactions, LegacyNullToEmptyString]
// attribute DOMString cellPadding; // attribute DOMString cellPadding;
// [CEReactions, TreatNullAs=EmptyString] // [CEReactions, LegacyNullToEmptyString]
// attribute DOMString cellSpacing; // attribute DOMString cellSpacing;
}; };

View file

@ -30,5 +30,5 @@ partial interface HTMLTableRowElement {
// attribute DOMString vAlign; // attribute DOMString vAlign;
[CEReactions] [CEReactions]
attribute [TreatNullAs=EmptyString] DOMString bgColor; attribute [LegacyNullToEmptyString] DOMString bgColor;
}; };

View file

@ -40,7 +40,7 @@ interface HTMLTextAreaElement : HTMLElement {
readonly attribute DOMString type; readonly attribute DOMString type;
[CEReactions] [CEReactions]
attribute DOMString defaultValue; attribute DOMString defaultValue;
attribute [TreatNullAs=EmptyString] DOMString value; attribute [LegacyNullToEmptyString] DOMString value;
readonly attribute unsigned long textLength; readonly attribute unsigned long textLength;
readonly attribute boolean willValidate; readonly attribute boolean willValidate;

View file

@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#location // https://html.spec.whatwg.org/multipage/#location
[Exposed=Window, Unforgeable] interface Location { [Exposed=Window, LegacyUnforgeable] interface Location {
[Throws, CrossOriginWritable] [Throws, CrossOriginWritable]
stringifier attribute USVString href; stringifier attribute USVString href;
[Throws] readonly attribute USVString origin; [Throws] readonly attribute USVString origin;

View file

@ -5,7 +5,7 @@
// https://drafts.csswg.org/cssom/#the-medialist-interface // https://drafts.csswg.org/cssom/#the-medialist-interface
[Exposed=Window] [Exposed=Window]
interface MediaList { interface MediaList {
stringifier attribute [TreatNullAs=EmptyString] DOMString mediaText; stringifier attribute [LegacyNullToEmptyString] DOMString mediaText;
readonly attribute unsigned long length; readonly attribute unsigned long length;
getter DOMString? item(unsigned long index); getter DOMString? item(unsigned long index);
undefined appendMedium(DOMString medium); undefined appendMedium(DOMString medium);

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/ * https://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface OESElementIndexUint { interface OESElementIndexUint {
}; };

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ * https://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface OESStandardDerivatives { interface OESStandardDerivatives {
const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
}; };

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/OES_texture_float/ * https://www.khronos.org/registry/webgl/extensions/OES_texture_float/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface OESTextureFloat { interface OESTextureFloat {
}; };

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/ * https://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface OESTextureFloatLinear { interface OESTextureFloatLinear {
}; };

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ * https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface OESTextureHalfFloat { interface OESTextureHalfFloat {
const GLenum HALF_FLOAT_OES = 0x8D61; const GLenum HALF_FLOAT_OES = 0x8D61;
}; };

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linear/ * https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linear/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface OESTextureHalfFloatLinear { interface OESTextureHalfFloatLinear {
}; };

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ * https://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface OESVertexArrayObject { interface OESVertexArrayObject {
const unsigned long VERTEX_ARRAY_BINDING_OES = 0x85B5; const unsigned long VERTEX_ARRAY_BINDING_OES = 0x85B5;

View file

@ -10,7 +10,7 @@ callback PromiseJobCallback = undefined();
[TreatNonCallableAsNull] [TreatNonCallableAsNull]
callback AnyCallback = any (any value); callback AnyCallback = any (any value);
[NoInterfaceObject, Exposed=(Window,Worker)] [LegacyNoInterfaceObject, Exposed=(Window,Worker)]
// Need to escape "Promise" so it's treated as an identifier. // Need to escape "Promise" so it's treated as an identifier.
interface _Promise { interface _Promise {
}; };

View file

@ -7,7 +7,7 @@
// Hack to allow us to have JS owning and properly tracing/CCing/etc a // Hack to allow us to have JS owning and properly tracing/CCing/etc a
// PromiseNativeHandler. // PromiseNativeHandler.
[NoInterfaceObject, [LegacyNoInterfaceObject,
Exposed=(Window,Worker)] Exposed=(Window,Worker)]
interface PromiseNativeHandler { interface PromiseNativeHandler {
}; };

View file

@ -5,7 +5,7 @@
// This interface is entirely internal to Servo, and should not be accessible to // This interface is entirely internal to Servo, and should not be accessible to
// web pages. // web pages.
[NoInterfaceObject, Exposed=(Window,Worker)] [LegacyNoInterfaceObject, Exposed=(Window,Worker)]
// Need to escape "ReadableStream" so it's treated as an identifier. // Need to escape "ReadableStream" so it's treated as an identifier.
interface _ReadableStream { interface _ReadableStream {
}; };

View file

@ -6,5 +6,5 @@
// web pages. // web pages.
[Exposed=(Window,Worker), [Exposed=(Window,Worker),
NoInterfaceObject] LegacyNoInterfaceObject]
interface ServoParser {}; interface ServoParser {};

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/WEBGL_color_buffer_float/ * https://www.khronos.org/registry/webgl/extensions/WEBGL_color_buffer_float/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface WEBGLColorBufferFloat { interface WEBGLColorBufferFloat {
const GLenum RGBA32F_EXT = 0x8814; const GLenum RGBA32F_EXT = 0x8814;
const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211; const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211;

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_etc1/ * https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_etc1/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface WEBGLCompressedTextureETC1 { interface WEBGLCompressedTextureETC1 {
/* Compressed Texture Format */ /* Compressed Texture Format */
const GLenum COMPRESSED_RGB_ETC1_WEBGL = 0x8D64; const GLenum COMPRESSED_RGB_ETC1_WEBGL = 0x8D64;

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc/ * https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface WEBGLCompressedTextureS3TC { interface WEBGLCompressedTextureS3TC {
/* Compressed Texture Formats */ /* Compressed Texture Formats */
const GLenum COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; const GLenum COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ * https://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
*/ */
[NoInterfaceObject, Exposed=Window] [LegacyNoInterfaceObject, Exposed=Window]
interface WebGLVertexArrayObjectOES: WebGLObject { interface WebGLVertexArrayObjectOES: WebGLObject {
}; };

View file

@ -6,13 +6,13 @@
[Global=Window, Exposed=Window /*, LegacyUnenumerableNamedProperties */] [Global=Window, Exposed=Window /*, LegacyUnenumerableNamedProperties */]
/*sealed*/ interface Window : GlobalScope { /*sealed*/ interface Window : GlobalScope {
// the current browsing context // the current browsing context
[Unforgeable, CrossOriginReadable] readonly attribute WindowProxy window; [LegacyUnforgeable, CrossOriginReadable] readonly attribute WindowProxy window;
[BinaryName="Self_", Replaceable, CrossOriginReadable] readonly attribute WindowProxy self; [BinaryName="Self_", Replaceable, CrossOriginReadable] readonly attribute WindowProxy self;
[Unforgeable] readonly attribute Document document; [LegacyUnforgeable] readonly attribute Document document;
attribute DOMString name; attribute DOMString name;
[PutForwards=href, Unforgeable, CrossOriginReadable, CrossOriginWritable] [PutForwards=href, LegacyUnforgeable, CrossOriginReadable, CrossOriginWritable]
readonly attribute Location location; readonly attribute Location location;
readonly attribute History history; readonly attribute History history;
[Pref="dom.customelements.enabled"] [Pref="dom.customelements.enabled"]
@ -35,7 +35,7 @@
[Replaceable, CrossOriginReadable] readonly attribute unsigned long length; [Replaceable, CrossOriginReadable] readonly attribute unsigned long length;
// Note that this can return null in the case that the browsing context has been discarded. // Note that this can return null in the case that the browsing context has been discarded.
// https://github.com/whatwg/html/issues/2115 // https://github.com/whatwg/html/issues/2115
[Unforgeable, CrossOriginReadable] readonly attribute WindowProxy? top; [LegacyUnforgeable, CrossOriginReadable] readonly attribute WindowProxy? top;
[CrossOriginReadable] attribute any opener; [CrossOriginReadable] attribute any opener;
// Note that this can return null in the case that the browsing context has been discarded. // Note that this can return null in the case that the browsing context has been discarded.
// https://github.com/whatwg/html/issues/2115 // https://github.com/whatwg/html/issues/2115

View file

@ -3,5 +3,5 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#the-windowproxy-exotic-object // https://html.spec.whatwg.org/multipage/#the-windowproxy-exotic-object
[Exposed=(Window,DissimilarOriginWindow), NoInterfaceObject] [Exposed=(Window,DissimilarOriginWindow), LegacyNoInterfaceObject]
interface WindowProxy {}; interface WindowProxy {};