Bug 1340027 - Part 2: Add HTML CEReactions annotation.

Tag UXP Issue #1344
This commit is contained in:
Gaming4JC 2020-01-04 21:41:41 -05:00 committed by Roy Tam
commit 8119a60e3d
68 changed files with 398 additions and 359 deletions

View file

@ -14,7 +14,8 @@
[OverrideBuiltins]
interface DOMStringMap {
getter DOMString (DOMString name);
[Throws]
[CEReactions, Throws]
setter creator void (DOMString name, DOMString value);
[CEReactions]
deleter void (DOMString name);
};

View file

@ -108,9 +108,9 @@ partial interface Document {
// DOM tree accessors
//(Not proxy yet)getter object (DOMString name);
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString title;
[Pure]
[CEReactions, Pure]
attribute DOMString dir;
//(HTML only) attribute HTMLElement? body;
//(HTML only)readonly attribute HTMLHeadElement? head;

View file

@ -14,24 +14,24 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-a-element
[HTMLConstructor]
interface HTMLAnchorElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString target;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString download;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString ping;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString rel;
[SetterThrows, Pref="network.http.enablePerElementReferrer"]
[CEReactions, SetterThrows, Pref="network.http.enablePerElementReferrer"]
attribute DOMString referrerPolicy;
[PutForwards=value]
readonly attribute DOMTokenList relList;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString hreflang;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString type;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString text;
};
@ -39,14 +39,14 @@ HTMLAnchorElement implements HTMLHyperlinkElementUtils;
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLAnchorElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString coords;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString charset;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString name;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString rev;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString shape;
};

View file

@ -15,19 +15,19 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-area-element
[HTMLConstructor]
interface HTMLAreaElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString alt;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString coords;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString shape;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString target;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString download;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString ping;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString rel;
[SetterThrows, Pref="network.http.enablePerElementReferrer"]
attribute DOMString referrerPolicy;
@ -39,6 +39,6 @@ HTMLAreaElement implements HTMLHyperlinkElementUtils;
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLAreaElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean noHref;
};

View file

@ -18,7 +18,7 @@ interface HTMLBRElement : HTMLElement {};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLBRElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString clear;
};

View file

@ -14,9 +14,9 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-base-element
[HTMLConstructor]
interface HTMLBaseElement : HTMLElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString href;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString target;
};

View file

@ -16,12 +16,18 @@ interface HTMLBodyElement : HTMLElement {
};
partial interface HTMLBodyElement {
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString text;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString link;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString vLink;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString aLink;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString bgColor;
[SetterThrows] attribute DOMString background;
[CEReactions, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString text;
[CEReactions, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString link;
[CEReactions, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString vLink;
[CEReactions, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString aLink;
[CEReactions, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString bgColor;
[CEReactions, SetterThrows]
attribute DOMString background;
};
HTMLBodyElement implements WindowEventHandlers;

View file

@ -13,27 +13,27 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-button-element
[HTMLConstructor]
interface HTMLButtonElement : HTMLElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean autofocus;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean disabled;
[Pure]
readonly attribute HTMLFormElement? form;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString formAction;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString formEnctype;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString formMethod;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean formNoValidate;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString formTarget;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString name;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString type;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString value;
// Not yet implemented:
// attribute HTMLMenuElement? menu;

View file

@ -15,9 +15,9 @@ interface Variant;
[HTMLConstructor]
interface HTMLCanvasElement : HTMLElement {
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute unsigned long width;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute unsigned long height;
[Throws]

View file

@ -19,6 +19,6 @@ interface HTMLDListElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLDListElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean compact;
};

View file

@ -9,6 +9,6 @@
[HTMLConstructor]
interface HTMLDataElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString value;
};

View file

@ -13,6 +13,6 @@
[HTMLConstructor]
interface HTMLDetailsElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean open;
};

View file

@ -13,11 +13,13 @@
[Pref="dom.dialog_element.enabled"]
interface HTMLDialogElement : HTMLElement {
[SetterThrows] attribute boolean open;
[CEReactions, SetterThrows]
attribute boolean open;
attribute DOMString returnValue;
[CEReactions]
void show();
[Throws] void showModal();
[CEReactions, Throws]
void showModal();
[CEReactions]
void close(optional DOMString returnValue);
};

View file

@ -14,7 +14,7 @@
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
[HTMLConstructor]
interface HTMLDirectoryElement : HTMLElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean compact;
};

View file

@ -15,6 +15,6 @@
interface HTMLDivElement : HTMLElement {};
partial interface HTMLDivElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
};

View file

@ -13,7 +13,7 @@ interface HTMLDocument : Document {
// DOM tree accessors
[Throws]
getter object (DOMString name);
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute HTMLElement? body;
[Pure]
readonly attribute HTMLHeadElement? head;
@ -32,20 +32,20 @@ interface HTMLDocument : Document {
NodeList getElementsByName(DOMString elementName);
// dynamic markup insertion
[Throws]
[CEReactions, Throws]
Document open(optional DOMString type = "text/html", optional DOMString replace = "");
[Throws]
[CEReactions, Throws]
WindowProxy? open(DOMString url, DOMString name, DOMString features, optional boolean replace = false);
[Throws]
[CEReactions, Throws]
void close();
[Throws]
[CEReactions, Throws]
void write(DOMString... text);
[Throws]
[CEReactions, Throws]
void writeln(DOMString... text);
[SetterThrows, NeedsSubjectPrincipal]
[CEReactions, SetterThrows, NeedsSubjectPrincipal]
attribute DOMString designMode;
[Throws]
[CEReactions, Throws]
boolean execCommand(DOMString commandId, optional boolean showUI = false,
optional DOMString value = "");
[Throws]
@ -58,11 +58,11 @@ interface HTMLDocument : Document {
[Throws]
DOMString queryCommandValue(DOMString commandId);
[TreatNullAs=EmptyString] attribute DOMString fgColor;
[TreatNullAs=EmptyString] attribute DOMString linkColor;
[TreatNullAs=EmptyString] attribute DOMString vlinkColor;
[TreatNullAs=EmptyString] attribute DOMString alinkColor;
[TreatNullAs=EmptyString] attribute DOMString bgColor;
[CEReactions, TreatNullAs=EmptyString] attribute DOMString fgColor;
[CEReactions, TreatNullAs=EmptyString] attribute DOMString linkColor;
[CEReactions, TreatNullAs=EmptyString] attribute DOMString vlinkColor;
[CEReactions, TreatNullAs=EmptyString] attribute DOMString alinkColor;
[CEReactions, TreatNullAs=EmptyString] attribute DOMString bgColor;
[Pure]
readonly attribute HTMLCollection anchors;

View file

@ -15,32 +15,34 @@
[HTMLConstructor]
interface HTMLElement : Element {
// metadata attributes
[CEReactions]
attribute DOMString title;
[CEReactions]
attribute DOMString lang;
// attribute boolean translate;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString dir;
[Constant]
readonly attribute DOMStringMap dataset;
[GetterThrows, Pure, TreatNullAs=EmptyString]
[CEReactions, GetterThrows, Pure, TreatNullAs=EmptyString]
attribute DOMString innerText;
// user interaction
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean hidden;
void click();
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute long tabIndex;
[Throws]
void focus();
[Throws]
void blur();
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString accessKey;
[Pure]
readonly attribute DOMString accessKeyLabel;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean draggable;
//[PutForwards=value] readonly attribute DOMTokenList dropzone;
[SetterThrows, Pure]
@ -51,7 +53,7 @@ interface HTMLElement : Element {
readonly attribute HTMLMenuElement? contextMenu;
//[SetterThrows]
// attribute HTMLMenuElement? contextMenu;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean spellcheck;
// command API

View file

@ -15,13 +15,13 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-embed-element
[HTMLConstructor, NeedResolve]
interface HTMLEmbedElement : HTMLElement {
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString src;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString type;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString width;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString height;
[Throws]
legacycaller any (any... arguments);
@ -29,9 +29,9 @@ interface HTMLEmbedElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#HTMLEmbedElement-partial
partial interface HTMLEmbedElement {
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString align;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString name;
};

View file

@ -13,10 +13,10 @@
[HTMLConstructor]
interface HTMLFieldSetElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean disabled;
readonly attribute HTMLFormElement? form;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString name;
readonly attribute DOMString type;

View file

@ -13,7 +13,7 @@
[HTMLConstructor]
interface HTMLFontElement : HTMLElement {
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString color;
[SetterThrows] attribute DOMString face;
[SetterThrows] attribute DOMString size;
[CEReactions, TreatNullAs=EmptyString, SetterThrows] attribute DOMString color;
[CEReactions, SetterThrows] attribute DOMString face;
[CEReactions, SetterThrows] attribute DOMString size;
};

View file

@ -13,23 +13,23 @@
[OverrideBuiltins, LegacyUnenumerableNamedProperties, HTMLConstructor]
interface HTMLFormElement : HTMLElement {
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString acceptCharset;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString action;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString autocomplete;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString enctype;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString encoding;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString method;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString name;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute boolean noValidate;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString target;
[Constant]
@ -43,6 +43,7 @@ interface HTMLFormElement : HTMLElement {
[Throws]
void submit();
[CEReactions]
void reset();
boolean checkValidity();
boolean reportValidity();

View file

@ -13,24 +13,26 @@
// http://www.whatwg.org/specs/web-apps/current-work/#htmlframeelement
[HTMLConstructor]
interface HTMLFrameElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString name;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString scrolling;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString src;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString frameBorder;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString longDesc;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean noResize;
[NeedsSubjectPrincipal]
readonly attribute Document? contentDocument;
readonly attribute WindowProxy? contentWindow;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginHeight;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginWidth;
[CEReactions, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString marginHeight;
[CEReactions, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString marginWidth;
};
HTMLFrameElement implements MozFrameLoaderOwner;

View file

@ -13,9 +13,9 @@
[HTMLConstructor]
interface HTMLFrameSetElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString cols;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString rows;
};

View file

@ -18,14 +18,14 @@ interface HTMLHRElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLHRElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString color;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean noShade;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString size;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString width;
};

View file

@ -18,6 +18,6 @@ interface HTMLHeadingElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLHeadingElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
};

View file

@ -18,6 +18,6 @@ interface HTMLHtmlElement : HTMLElement {};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLHtmlElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString version;
};

View file

@ -18,17 +18,26 @@ interface HTMLHyperlinkElementUtils {
// Bug 824857 should remove this.
stringifier;
[SetterThrows]
[CEReactions, SetterThrows]
attribute USVString href;
readonly attribute USVString origin;
[CEReactions]
attribute USVString protocol;
[CEReactions]
attribute USVString username;
[CEReactions]
attribute USVString password;
[CEReactions]
attribute USVString host;
[CEReactions]
attribute USVString hostname;
[CEReactions]
attribute USVString port;
[CEReactions]
attribute USVString pathname;
[CEReactions]
attribute USVString search;
[CEReactions]
attribute USVString hash;
};

View file

@ -13,21 +13,21 @@
[HTMLConstructor]
interface HTMLIFrameElement : HTMLElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString src;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString srcdoc;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString name;
[PutForwards=value] readonly attribute DOMTokenList sandbox;
// attribute boolean seamless;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean allowFullscreen;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString width;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString height;
[SetterThrows, Pure, Pref="network.http.enablePerElementReferrer"]
[CEReactions, SetterThrows, Pure, Pref="network.http.enablePerElementReferrer"]
attribute DOMString referrerPolicy;
[NeedsSubjectPrincipal]
readonly attribute Document? contentDocument;
@ -36,17 +36,19 @@ interface HTMLIFrameElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLIFrameElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString align;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString scrolling;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString frameBorder;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString longDesc;
[TreatNullAs=EmptyString,SetterThrows,Pure] attribute DOMString marginHeight;
[TreatNullAs=EmptyString,SetterThrows,Pure] attribute DOMString marginWidth;
[CEReactions, TreatNullAs=EmptyString, SetterThrows, Pure]
attribute DOMString marginHeight;
[CEReactions, TreatNullAs=EmptyString, SetterThrows, Pure]
attribute DOMString marginWidth;
};
partial interface HTMLIFrameElement {

View file

@ -19,23 +19,23 @@ interface nsIStreamListener;
[HTMLConstructor,
NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
interface HTMLImageElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString alt;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString src;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString srcset;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString? crossOrigin;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString useMap;
[SetterThrows, Pref="network.http.enablePerElementReferrer"]
[CEReactions, SetterThrows, Pref="network.http.enablePerElementReferrer"]
attribute DOMString referrerPolicy;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean isMap;
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long width;
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long height;
readonly attribute unsigned long naturalWidth;
readonly attribute unsigned long naturalHeight;
@ -44,30 +44,31 @@ interface HTMLImageElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLImageElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString name;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long hspace;
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long vspace;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString longDesc;
[TreatNullAs=EmptyString,SetterThrows] attribute DOMString border;
[CEReactions, TreatNullAs=EmptyString,SetterThrows] attribute DOMString border;
};
// [Update me: not in whatwg spec yet]
// http://picture.responsiveimages.org/#the-img-element
partial interface HTMLImageElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString sizes;
readonly attribute DOMString currentSrc;
};
// Mozilla extensions.
partial interface HTMLImageElement {
[CEReactions]
attribute DOMString lowsrc;
// These attributes are offsets from the closest view (to mimic

View file

@ -23,78 +23,79 @@ interface nsIControllers;
[HTMLConstructor]
interface HTMLInputElement : HTMLElement {
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString accept;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString alt;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString autocomplete;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute boolean autofocus;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute boolean defaultChecked;
[Pure]
attribute boolean checked;
// Bug 850337 - attribute DOMString dirName;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute boolean disabled;
readonly attribute HTMLFormElement? form;
[Pure]
readonly attribute FileList? files;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString formAction;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString formEnctype;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString formMethod;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute boolean formNoValidate;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString formTarget;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute unsigned long height;
[Pure]
attribute boolean indeterminate;
[Pure, SetterThrows, Pref="dom.forms.inputmode"]
[CEReactions, Pure, SetterThrows, Pref="dom.forms.inputmode"]
attribute DOMString inputMode;
[Pure]
readonly attribute HTMLElement? list;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString max;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute long maxLength;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString min;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute long minLength;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute boolean multiple;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString name;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString pattern;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString placeholder;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute boolean readOnly;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute boolean required;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute unsigned long size;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString src;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString step;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString type;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString defaultValue;
[Pure, TreatNullAs=EmptyString, Throws]
[CEReactions, Pure, TreatNullAs=EmptyString, Throws]
attribute DOMString value;
[Throws, Func="HTMLInputElement::ValueAsDateEnabled"]
attribute Date? valueAsDate;
[Pure, SetterThrows]
attribute unrestricted double valueAsNumber;
[CEReactions]
attribute unsigned long width;
[Throws]
@ -133,9 +134,9 @@ interface HTMLInputElement : HTMLElement {
};
partial interface HTMLInputElement {
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString align;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString useMap;
};

View file

@ -15,12 +15,12 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-li-element
[HTMLConstructor]
interface HTMLLIElement : HTMLElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute long value;
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLLIElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString type;
};

View file

@ -14,6 +14,7 @@
[HTMLConstructor]
interface HTMLLabelElement : HTMLElement {
readonly attribute HTMLFormElement? form;
[CEReactions]
attribute DOMString htmlFor;
readonly attribute HTMLElement? control;
};

View file

@ -20,6 +20,6 @@ interface HTMLLegendElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLLegendElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
};

View file

@ -16,21 +16,21 @@
interface HTMLLinkElement : HTMLElement {
[Pure]
attribute boolean disabled;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString href;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString? crossOrigin;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString rel;
[PutForwards=value]
readonly attribute DOMTokenList relList;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString media;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString hreflang;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString type;
[SetterThrows, Pure, Pref="network.http.enablePerElementReferrer"]
[CEReactions, SetterThrows, Pure, Pref="network.http.enablePerElementReferrer"]
attribute DOMString referrerPolicy;
[PutForwards=value] readonly attribute DOMTokenList sizes;
};
@ -38,11 +38,11 @@ HTMLLinkElement implements LinkStyle;
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLLinkElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString charset;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString rev;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString target;
};
@ -54,6 +54,6 @@ partial interface HTMLLinkElement {
// https://w3c.github.io/webappsec/specs/subresourceintegrity/#htmllinkelement-1
partial interface HTMLLinkElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString integrity;
};

View file

@ -13,7 +13,7 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-map-element
[HTMLConstructor]
interface HTMLMapElement : HTMLElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString name;
[Constant]
readonly attribute HTMLCollection areas;

View file

@ -17,18 +17,18 @@ interface HTMLMediaElement : HTMLElement {
readonly attribute MediaError? error;
// network state
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString src;
readonly attribute DOMString currentSrc;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString? crossOrigin;
const unsigned short NETWORK_EMPTY = 0;
const unsigned short NETWORK_IDLE = 1;
const unsigned short NETWORK_LOADING = 2;
const unsigned short NETWORK_NO_SOURCE = 3;
readonly attribute unsigned short networkState;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString preload;
[NewObject]
readonly attribute TimeRanges buffered;
@ -63,9 +63,9 @@ interface HTMLMediaElement : HTMLElement {
[NewObject]
readonly attribute TimeRanges seekable;
readonly attribute boolean ended;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean autoplay;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean loop;
[Throws]
Promise<void> play();
@ -78,12 +78,12 @@ interface HTMLMediaElement : HTMLElement {
// attribute MediaController? controller;
// controls
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean controls;
[SetterThrows]
attribute double volume;
attribute boolean muted;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean defaultMuted;
// TODO: Bug 847379

View file

@ -17,15 +17,15 @@ interface MenuBuilder;
// http://www.whatwg.org/specs/web-apps/current-work/#the-menu-element
[HTMLConstructor]
interface HTMLMenuElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString type;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString label;
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLMenuElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean compact;
};

View file

@ -14,22 +14,22 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-menuitem-element
[HTMLConstructor]
interface HTMLMenuItemElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString type;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString label;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString icon;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean disabled;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean checked;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString radiogroup;
// This should be 'default' but in the IDL implementation
// this has been renamed 'defaultChecked'.
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean defaultChecked;
// Currently not implemented.

View file

@ -14,16 +14,16 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-meta-element
[HTMLConstructor]
interface HTMLMetaElement : HTMLElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString name;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString httpEquiv;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString content;
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLMetaElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString scheme;
};

View file

@ -14,17 +14,17 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-meter-element
[HTMLConstructor]
interface HTMLMeterElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute double value;
[SetterThrows]
[CEReactions, SetterThrows]
attribute double min;
[SetterThrows]
[CEReactions, SetterThrows]
attribute double max;
[SetterThrows]
[CEReactions, SetterThrows]
attribute double low;
[SetterThrows]
[CEReactions, SetterThrows]
attribute double high;
[SetterThrows]
[CEReactions, SetterThrows]
attribute double optimum;
readonly attribute NodeList labels;

View file

@ -13,8 +13,8 @@
// http://www.whatwg.org/specs/web-apps/current-work/#attributes-common-to-ins-and-del-elements
[HTMLConstructor]
interface HTMLModElement : HTMLElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString cite;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString dateTime;
};

View file

@ -15,16 +15,16 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-ol-element
[HTMLConstructor]
interface HTMLOListElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean reversed;
[SetterThrows]
[CEReactions, SetterThrows]
attribute long start;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString type;
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLOListElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean compact;
};

View file

@ -15,21 +15,21 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-object-element
[HTMLConstructor, NeedResolve, UnsafeInPrerendering]
interface HTMLObjectElement : HTMLElement {
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString data;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString type;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute boolean typeMustMatch;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString name;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString useMap;
[Pure]
readonly attribute HTMLFormElement? form;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString width;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString height;
// Not pure: can trigger about:blank instantiation
[NeedsSubjectPrincipal]
@ -51,26 +51,26 @@ interface HTMLObjectElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#HTMLObjectElement-partial
partial interface HTMLObjectElement {
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString align;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString archive;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString code;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute boolean declare;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute unsigned long hspace;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString standby;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute unsigned long vspace;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString codeBase;
[Pure, SetterThrows]
[CEReactions, Pure, SetterThrows]
attribute DOMString codeType;
[TreatNullAs=EmptyString, Pure, SetterThrows]
[CEReactions, TreatNullAs=EmptyString, Pure, SetterThrows]
attribute DOMString border;
};

View file

@ -13,8 +13,8 @@
[HTMLConstructor]
interface HTMLOptGroupElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean disabled;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString label;
};

View file

@ -13,19 +13,19 @@
[HTMLConstructor, NamedConstructor=Option(optional DOMString text, optional DOMString value, optional boolean defaultSelected, optional boolean selected)]
interface HTMLOptionElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean disabled;
readonly attribute HTMLFormElement? form;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString label;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean defaultSelected;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean selected;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString value;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString text;
readonly attribute long index;
};

View file

@ -11,13 +11,14 @@
*/
interface HTMLOptionsCollection : HTMLCollection {
[CEReactions]
attribute unsigned long length;
[Throws]
[CEReactions, Throws]
setter creator void (unsigned long index, HTMLOptionElement? option);
[Throws]
[CEReactions, Throws]
void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
[Throws]
[CEReactions, Throws]
void remove(long index);
[Throws]
[CEReactions, Throws]
attribute long selectedIndex;
};

View file

@ -17,14 +17,14 @@ interface HTMLOutputElement : HTMLElement {
[PutForwards=value, Constant]
readonly attribute DOMTokenList htmlFor;
readonly attribute HTMLFormElement? form;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString name;
[Constant]
readonly attribute DOMString type;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString defaultValue;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString value;
readonly attribute boolean willValidate;

View file

@ -18,6 +18,6 @@ interface HTMLParagraphElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLParagraphElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
};

View file

@ -15,16 +15,16 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-param-element
[HTMLConstructor]
interface HTMLParamElement : HTMLElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString name;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString value;
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLParamElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString type;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString valueType;
};

View file

@ -18,6 +18,6 @@ interface HTMLPreElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLPreElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute long width;
};

View file

@ -13,9 +13,9 @@
[HTMLConstructor]
interface HTMLProgressElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute double value;
[SetterThrows]
[CEReactions, SetterThrows]
attribute double max;
readonly attribute double position;
readonly attribute NodeList labels;

View file

@ -14,7 +14,7 @@
// http://www.whatwg.org/specs/web-apps/current-work/#the-blockquote-element
[HTMLConstructor]
interface HTMLQuoteElement : HTMLElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString cite;
};

View file

@ -10,34 +10,34 @@
[HTMLConstructor]
interface HTMLScriptElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString src;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString type;
[SetterThrows, Pref="dom.moduleScripts.enabled"]
[CEReactions, SetterThrows, Pref="dom.moduleScripts.enabled"]
attribute boolean noModule;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString charset;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean async;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean defer;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString? crossOrigin;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString text;
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLScriptElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString event;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString htmlFor;
};
// https://w3c.github.io/webappsec/specs/subresourceintegrity/#htmlscriptelement-1
partial interface HTMLScriptElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString integrity;
};

View file

@ -9,21 +9,21 @@
[HTMLConstructor]
interface HTMLSelectElement : HTMLElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean autofocus;
[Pref="dom.forms.autocomplete.experimental", SetterThrows, Pure]
[CEReactions, Pref="dom.forms.autocomplete.experimental", SetterThrows, Pure]
attribute DOMString autocomplete;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean disabled;
[Pure]
readonly attribute HTMLFormElement? form;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean multiple;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString name;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean required;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute unsigned long size;
[Pure]
@ -31,14 +31,15 @@ interface HTMLSelectElement : HTMLElement {
[Constant]
readonly attribute HTMLOptionsCollection options;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute unsigned long length;
getter Element? item(unsigned long index);
HTMLOptionElement? namedItem(DOMString name);
[Throws]
[CEReactions, Throws]
void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
[CEReactions]
void remove(long index);
[Throws]
[CEReactions, Throws]
setter creator void (unsigned long index, HTMLOptionElement? option);
readonly attribute HTMLCollection selectedOptions;
@ -57,6 +58,7 @@ interface HTMLSelectElement : HTMLElement {
readonly attribute NodeList labels;
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=20720
[CEReactions]
void remove();
};

View file

@ -13,17 +13,17 @@
[HTMLConstructor]
interface HTMLSourceElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString src;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString type;
};
partial interface HTMLSourceElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString srcset;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString sizes;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString media;
};

View file

@ -12,9 +12,9 @@
interface HTMLStyleElement : HTMLElement {
[Pure]
attribute boolean disabled;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString media;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString type;
[SetterThrows, Pure]
attribute boolean scoped;

View file

@ -15,6 +15,6 @@
interface HTMLTableCaptionElement : HTMLElement {};
partial interface HTMLTableCaptionElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
};

View file

@ -13,40 +13,41 @@
[HTMLConstructor]
interface HTMLTableCellElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long colSpan;
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long rowSpan;
//[PutForwards=value] readonly attribute DOMTokenList headers;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString headers;
readonly attribute long cellIndex;
// Mozilla-specific extensions
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString abbr;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString scope;
};
partial interface HTMLTableCellElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString axis;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString height;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString width;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString ch;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString chOff;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean noWrap;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString vAlign;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString bgColor;
[CEReactions, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString bgColor;
};

View file

@ -13,19 +13,19 @@
[HTMLConstructor]
interface HTMLTableColElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long span;
};
partial interface HTMLTableColElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString ch;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString chOff;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString vAlign;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString width;
};

View file

@ -13,44 +13,50 @@
[HTMLConstructor]
interface HTMLTableElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute HTMLTableCaptionElement? caption;
HTMLElement createCaption();
[CEReactions]
void deleteCaption();
[SetterThrows]
[CEReactions, SetterThrows]
attribute HTMLTableSectionElement? tHead;
HTMLElement createTHead();
[CEReactions]
void deleteTHead();
[SetterThrows]
[CEReactions, SetterThrows]
attribute HTMLTableSectionElement? tFoot;
HTMLElement createTFoot();
[CEReactions]
void deleteTFoot();
readonly attribute HTMLCollection tBodies;
HTMLElement createTBody();
readonly attribute HTMLCollection rows;
[Throws]
HTMLElement insertRow(optional long index = -1);
[Throws]
[CEReactions, Throws]
void deleteRow(long index);
// attribute boolean sortable;
//void stopSorting();
};
partial interface HTMLTableElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString border;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString frame;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString rules;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString summary;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString width;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString bgColor;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString cellPadding;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString cellSpacing;
[CEReactions, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString bgColor;
[CEReactions, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString cellPadding;
[CEReactions, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString cellSpacing;
};

View file

@ -16,21 +16,22 @@ interface HTMLTableRowElement : HTMLElement {
readonly attribute long rowIndex;
readonly attribute long sectionRowIndex;
readonly attribute HTMLCollection cells;
[Throws]
[CEReactions, Throws]
HTMLElement insertCell(optional long index = -1);
[Throws]
void deleteCell(long index);
};
partial interface HTMLTableRowElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString ch;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString chOff;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString vAlign;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString bgColor;
[CEReactions, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString bgColor;
};

View file

@ -16,17 +16,17 @@ interface HTMLTableSectionElement : HTMLElement {
readonly attribute HTMLCollection rows;
[Throws]
HTMLElement insertRow(optional long index = -1);
[Throws]
[CEReactions, Throws]
void deleteRow(long index);
};
partial interface HTMLTableSectionElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString ch;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString chOff;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString vAlign;
};

View file

@ -17,38 +17,38 @@ interface MozControllers;
[HTMLConstructor]
interface HTMLTextAreaElement : HTMLElement {
// attribute DOMString autocomplete;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean autofocus;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute unsigned long cols;
// attribute DOMString dirName;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean disabled;
[Pure]
readonly attribute HTMLFormElement? form;
// attribute DOMString inputMode;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute long maxLength;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute long minLength;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString name;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString placeholder;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean readOnly;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean required;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute unsigned long rows;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString wrap;
[Constant]
readonly attribute DOMString type;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString defaultValue;
[TreatNullAs=EmptyString] attribute DOMString value;
[CEReactions, TreatNullAs=EmptyString] attribute DOMString value;
readonly attribute unsigned long textLength;
readonly attribute boolean willValidate;

View file

@ -9,6 +9,6 @@
[HTMLConstructor]
interface HTMLTimeElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString dateTime;
};

View file

@ -9,6 +9,6 @@
[HTMLConstructor]
interface HTMLTitleElement : HTMLElement {
[Throws]
[CEReactions, Throws]
attribute DOMString text;
};

View file

@ -9,15 +9,15 @@
[HTMLConstructor]
interface HTMLTrackElement : HTMLElement {
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString kind;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString src;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString srclang;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute DOMString label;
[SetterThrows, Pure]
[CEReactions, SetterThrows, Pure]
attribute boolean default;
const unsigned short NONE = 0;

View file

@ -19,8 +19,8 @@ interface HTMLUListElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLUListElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean compact;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString type;
};

View file

@ -13,13 +13,13 @@
[HTMLConstructor]
interface HTMLVideoElement : HTMLMediaElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long width;
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long height;
readonly attribute unsigned long videoWidth;
readonly attribute unsigned long videoHeight;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString poster;
};