Skip to content

Commit

Permalink
Add HTMLConstructor attributes where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrewster committed Jun 16, 2017
1 parent 0713257 commit d951dee
Show file tree
Hide file tree
Showing 68 changed files with 70 additions and 7 deletions.
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLAnchorElement.webidl
Expand Up @@ -11,6 +11,7 @@
*/

// https://html.spec.whatwg.org/multipage/#htmlanchorelement
[HTMLConstructor]
interface HTMLAnchorElement : HTMLElement {
attribute DOMString target;
// attribute DOMString download;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLAppletElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlappletelement
// Note: intentionally not [HTMLConstructor]
interface HTMLAppletElement : HTMLElement {
// attribute DOMString align;
// attribute DOMString alt;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLAreaElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlareaelement
[HTMLConstructor]
interface HTMLAreaElement : HTMLElement {
// attribute DOMString alt;
// attribute DOMString coords;
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/webidls/HTMLAudioElement.webidl
Expand Up @@ -3,5 +3,5 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlaudioelement
//[NamedConstructor=Audio(optional DOMString src)]
[HTMLConstructor/*, NamedConstructor=Audio(optional DOMString src)*/]
interface HTMLAudioElement : HTMLMediaElement {};
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLBRElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlbrelement
[HTMLConstructor]
interface HTMLBRElement : HTMLElement {
// also has obsolete members
};
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLBaseElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlbaseelement
[HTMLConstructor]
interface HTMLBaseElement : HTMLElement {
attribute DOMString href;
// attribute DOMString target;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLBodyElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#the-body-element
[HTMLConstructor]
interface HTMLBodyElement : HTMLElement {
// also has obsolete members
};
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLButtonElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlbuttonelement
[HTMLConstructor]
interface HTMLButtonElement : HTMLElement {
// attribute boolean autofocus;
attribute boolean disabled;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLCanvasElement.webidl
Expand Up @@ -5,6 +5,7 @@
// https://html.spec.whatwg.org/multipage/#htmlcanvaselement
typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;

[HTMLConstructor]
interface HTMLCanvasElement : HTMLElement {
[Pure]
attribute unsigned long width;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLDListElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmldlistelement
[HTMLConstructor]
interface HTMLDListElement : HTMLElement {
// also has obsolete members
};
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLDataElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmldataelement
[HTMLConstructor]
interface HTMLDataElement : HTMLElement {
attribute DOMString value;
};
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLDataListElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmldatalistelement
[HTMLConstructor]
interface HTMLDataListElement : HTMLElement {
readonly attribute HTMLCollection options;
};
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLDetailsElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmldetailselement
[HTMLConstructor]
interface HTMLDetailsElement : HTMLElement {
attribute boolean open;
};
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLDialogElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmldialogelement
[HTMLConstructor]
interface HTMLDialogElement : HTMLElement {
attribute boolean open;
attribute DOMString returnValue;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLDirectoryElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmldirectoryelement
[HTMLConstructor]
interface HTMLDirectoryElement : HTMLElement {
// attribute boolean compact;
};
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLDivElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmldivelement
[HTMLConstructor]
interface HTMLDivElement : HTMLElement {
// also has obsolete members
};
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlelement
[HTMLConstructor]
interface HTMLElement : Element {
// metadata attributes
attribute DOMString title;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLEmbedElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlembedelement
[HTMLConstructor]
interface HTMLEmbedElement : HTMLElement {
// attribute DOMString src;
// attribute DOMString type;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLFieldSetElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlfieldsetelement
[HTMLConstructor]
interface HTMLFieldSetElement : HTMLElement {
attribute boolean disabled;
readonly attribute HTMLFormElement? form;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLFontElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlfontelement
[HTMLConstructor]
interface HTMLFontElement : HTMLElement {
[TreatNullAs=EmptyString] attribute DOMString color;
attribute DOMString face;
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/webidls/HTMLFormElement.webidl
Expand Up @@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlformelement
//[OverrideBuiltins]
[/*OverrideBuiltins, */HTMLConstructor]
interface HTMLFormElement : HTMLElement {
attribute DOMString acceptCharset;
attribute DOMString action;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLFrameElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlframeelement
[HTMLConstructor]
interface HTMLFrameElement : HTMLElement {
// attribute DOMString name;
// attribute DOMString scrolling;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLFrameSetElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlframesetelement
[HTMLConstructor]
interface HTMLFrameSetElement : HTMLElement {
// attribute DOMString cols;
// attribute DOMString rows;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLHRElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlhrelement
[HTMLConstructor]
interface HTMLHRElement : HTMLElement {
// also has obsolete members
};
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLHeadElement.webidl
Expand Up @@ -3,4 +3,5 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlheadelement
[HTMLConstructor]
interface HTMLHeadElement : HTMLElement {};
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLHeadingElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlheadingelement
[HTMLConstructor]
interface HTMLHeadingElement : HTMLElement {
// also has obsolete members
};
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLHtmlElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlhtmlelement
[HTMLConstructor]
interface HTMLHtmlElement : HTMLElement {
// also has obsolete members
};
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLIFrameElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmliframeelement
[HTMLConstructor]
interface HTMLIFrameElement : HTMLElement {
attribute DOMString src;
// attribute DOMString srcdoc;
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/webidls/HTMLImageElement.webidl
Expand Up @@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlimageelement
[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
[HTMLConstructor, NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
interface HTMLImageElement : HTMLElement {
attribute DOMString alt;
attribute DOMString src;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLInputElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlinputelement
[HTMLConstructor]
interface HTMLInputElement : HTMLElement {
attribute DOMString accept;
attribute DOMString alt;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLLIElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmllielement
[HTMLConstructor]
interface HTMLLIElement : HTMLElement {
attribute long value;

Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLLabelElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmllabelelement
[HTMLConstructor]
interface HTMLLabelElement : HTMLElement {
readonly attribute HTMLFormElement? form;
attribute DOMString htmlFor;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLLegendElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmllegendelement
[HTMLConstructor]
interface HTMLLegendElement : HTMLElement {
readonly attribute HTMLFormElement? form;

Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLLinkElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmllinkelement
[HTMLConstructor]
interface HTMLLinkElement : HTMLElement {
attribute DOMString href;
attribute DOMString? crossOrigin;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLMapElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlmapelement
[HTMLConstructor]
interface HTMLMapElement : HTMLElement {
// attribute DOMString name;
//readonly attribute HTMLCollection areas;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLMetaElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlmetaelement
[HTMLConstructor]
interface HTMLMetaElement : HTMLElement {
attribute DOMString name;
// attribute DOMString httpEquiv;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLMeterElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlmeterelement
[HTMLConstructor]
interface HTMLMeterElement : HTMLElement {
// attribute double value;
// attribute double min;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLModElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlmodelement
[HTMLConstructor]
interface HTMLModElement : HTMLElement {
// attribute DOMString cite;
// attribute DOMString dateTime;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLOListElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlolistelement
[HTMLConstructor]
interface HTMLOListElement : HTMLElement {
// attribute boolean reversed;
// attribute long start;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLObjectElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlobjectelement
[HTMLConstructor]
interface HTMLObjectElement : HTMLElement {
// attribute DOMString data;
attribute DOMString type;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLOptGroupElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmloptgroupelement
[HTMLConstructor]
interface HTMLOptGroupElement : HTMLElement {
attribute boolean disabled;
// attribute DOMString label;
Expand Down
6 changes: 3 additions & 3 deletions components/script/dom/webidls/HTMLOptionElement.webidl
Expand Up @@ -3,9 +3,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmloptionelement
//[NamedConstructor=Option(optional DOMString text = "", optional DOMString value,
// optional boolean defaultSelected = false,
// optional boolean selected = false)]
[HTMLConstructor/*, NamedConstructor=Option(optional DOMString text = "", optional DOMString value,
optional boolean defaultSelected = false,
optional boolean selected = false)*/]
interface HTMLOptionElement : HTMLElement {
attribute boolean disabled;
readonly attribute HTMLFormElement? form;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLOutputElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmloutputelement
[HTMLConstructor]
interface HTMLOutputElement : HTMLElement {
// [SameObject, PutForwards=value] readonly attribute DOMTokenList htmlFor;
readonly attribute HTMLFormElement? form;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLParagraphElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlparagraphelement
[HTMLConstructor]
interface HTMLParagraphElement : HTMLElement {
// also has obsolete members
};
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLParamElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlparamelement
[HTMLConstructor]
interface HTMLParamElement : HTMLElement {
// attribute DOMString name;
// attribute DOMString value;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLPreElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlpreelement
[HTMLConstructor]
interface HTMLPreElement : HTMLElement {
// also has obsolete members
};
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLProgressElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlprogresselement
[HTMLConstructor]
interface HTMLProgressElement : HTMLElement {
// attribute double value;
// attribute double max;
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLQuoteElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlquoteelement
[HTMLConstructor]
interface HTMLQuoteElement : HTMLElement {
// attribute DOMString cite;
};
1 change: 1 addition & 0 deletions components/script/dom/webidls/HTMLScriptElement.webidl
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://html.spec.whatwg.org/multipage/#htmlscriptelement
[HTMLConstructor]
interface HTMLScriptElement : HTMLElement {
attribute DOMString src;
attribute DOMString type;
Expand Down

0 comments on commit d951dee

Please sign in to comment.