summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dom/webidl/HTMLAnchorElement.webidl1
-rw-r--r--dom/webidl/HTMLAreaElement.webidl1
-rw-r--r--dom/webidl/HTMLAudioElement.webidl2
-rw-r--r--dom/webidl/HTMLBRElement.webidl1
-rw-r--r--dom/webidl/HTMLBaseElement.webidl1
-rw-r--r--dom/webidl/HTMLBodyElement.webidl1
-rw-r--r--dom/webidl/HTMLButtonElement.webidl1
-rw-r--r--dom/webidl/HTMLCanvasElement.webidl1
-rw-r--r--dom/webidl/HTMLDListElement.webidl1
-rw-r--r--dom/webidl/HTMLDataElement.webidl1
-rw-r--r--dom/webidl/HTMLDataListElement.webidl1
-rw-r--r--dom/webidl/HTMLDetailsElement.webidl1
-rw-r--r--dom/webidl/HTMLDirectoryElement.webidl1
-rw-r--r--dom/webidl/HTMLDivElement.webidl1
-rw-r--r--dom/webidl/HTMLElement.webidl1
-rw-r--r--dom/webidl/HTMLEmbedElement.webidl2
-rw-r--r--dom/webidl/HTMLFieldSetElement.webidl1
-rw-r--r--dom/webidl/HTMLFontElement.webidl1
-rw-r--r--dom/webidl/HTMLFormElement.webidl2
-rw-r--r--dom/webidl/HTMLFrameElement.webidl1
-rw-r--r--dom/webidl/HTMLFrameSetElement.webidl1
-rw-r--r--dom/webidl/HTMLHRElement.webidl1
-rw-r--r--dom/webidl/HTMLHeadElement.webidl1
-rw-r--r--dom/webidl/HTMLHeadingElement.webidl1
-rw-r--r--dom/webidl/HTMLHtmlElement.webidl1
-rw-r--r--dom/webidl/HTMLIFrameElement.webidl1
-rw-r--r--dom/webidl/HTMLImageElement.webidl3
-rw-r--r--dom/webidl/HTMLInputElement.webidl1
-rw-r--r--dom/webidl/HTMLLIElement.webidl1
-rw-r--r--dom/webidl/HTMLLabelElement.webidl1
-rw-r--r--dom/webidl/HTMLLegendElement.webidl1
-rw-r--r--dom/webidl/HTMLLinkElement.webidl1
-rw-r--r--dom/webidl/HTMLMapElement.webidl1
-rw-r--r--dom/webidl/HTMLMenuElement.webidl1
-rw-r--r--dom/webidl/HTMLMenuItemElement.webidl1
-rw-r--r--dom/webidl/HTMLMetaElement.webidl1
-rw-r--r--dom/webidl/HTMLMeterElement.webidl1
-rw-r--r--dom/webidl/HTMLModElement.webidl1
-rw-r--r--dom/webidl/HTMLOListElement.webidl1
-rw-r--r--dom/webidl/HTMLObjectElement.webidl2
-rw-r--r--dom/webidl/HTMLOptGroupElement.webidl1
-rw-r--r--dom/webidl/HTMLOptionElement.webidl2
-rw-r--r--dom/webidl/HTMLOutputElement.webidl1
-rw-r--r--dom/webidl/HTMLParagraphElement.webidl1
-rw-r--r--dom/webidl/HTMLParamElement.webidl1
-rw-r--r--dom/webidl/HTMLPictureElement.webidl1
-rw-r--r--dom/webidl/HTMLPreElement.webidl1
-rw-r--r--dom/webidl/HTMLProgressElement.webidl1
-rw-r--r--dom/webidl/HTMLQuoteElement.webidl1
-rw-r--r--dom/webidl/HTMLScriptElement.webidl1
-rw-r--r--dom/webidl/HTMLSelectElement.webidl1
-rw-r--r--dom/webidl/HTMLSourceElement.webidl1
-rw-r--r--dom/webidl/HTMLSpanElement.webidl1
-rw-r--r--dom/webidl/HTMLStyleElement.webidl1
-rw-r--r--dom/webidl/HTMLTableCaptionElement.webidl1
-rw-r--r--dom/webidl/HTMLTableCellElement.webidl1
-rw-r--r--dom/webidl/HTMLTableColElement.webidl1
-rw-r--r--dom/webidl/HTMLTableElement.webidl1
-rw-r--r--dom/webidl/HTMLTableRowElement.webidl1
-rw-r--r--dom/webidl/HTMLTableSectionElement.webidl1
-rw-r--r--dom/webidl/HTMLTemplateElement.webidl1
-rw-r--r--dom/webidl/HTMLTextAreaElement.webidl1
-rw-r--r--dom/webidl/HTMLTimeElement.webidl1
-rw-r--r--dom/webidl/HTMLTitleElement.webidl1
-rw-r--r--dom/webidl/HTMLTrackElement.webidl1
-rw-r--r--dom/webidl/HTMLUListElement.webidl1
-rw-r--r--dom/webidl/HTMLVideoElement.webidl1
67 files changed, 68 insertions, 6 deletions
diff --git a/dom/webidl/HTMLAnchorElement.webidl b/dom/webidl/HTMLAnchorElement.webidl
index 0b8ded6d7..aa8e7d082 100644
--- a/dom/webidl/HTMLAnchorElement.webidl
+++ b/dom/webidl/HTMLAnchorElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-a-element
+[HTMLConstructor]
interface HTMLAnchorElement : HTMLElement {
[SetterThrows]
attribute DOMString target;
diff --git a/dom/webidl/HTMLAreaElement.webidl b/dom/webidl/HTMLAreaElement.webidl
index be3f37885..113f1822e 100644
--- a/dom/webidl/HTMLAreaElement.webidl
+++ b/dom/webidl/HTMLAreaElement.webidl
@@ -13,6 +13,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-area-element
+[HTMLConstructor]
interface HTMLAreaElement : HTMLElement {
[SetterThrows]
attribute DOMString alt;
diff --git a/dom/webidl/HTMLAudioElement.webidl b/dom/webidl/HTMLAudioElement.webidl
index 8537453c0..725669839 100644
--- a/dom/webidl/HTMLAudioElement.webidl
+++ b/dom/webidl/HTMLAudioElement.webidl
@@ -11,6 +11,6 @@
* and create derivative works of this document.
*/
-[NamedConstructor=Audio(optional DOMString src)]
+[HTMLConstructor, NamedConstructor=Audio(optional DOMString src)]
interface HTMLAudioElement : HTMLMediaElement {};
diff --git a/dom/webidl/HTMLBRElement.webidl b/dom/webidl/HTMLBRElement.webidl
index cf5cb8a67..07b8d9f0d 100644
--- a/dom/webidl/HTMLBRElement.webidl
+++ b/dom/webidl/HTMLBRElement.webidl
@@ -13,6 +13,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-br-element
+[HTMLConstructor]
interface HTMLBRElement : HTMLElement {};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
diff --git a/dom/webidl/HTMLBaseElement.webidl b/dom/webidl/HTMLBaseElement.webidl
index d982f4654..bc43e0570 100644
--- a/dom/webidl/HTMLBaseElement.webidl
+++ b/dom/webidl/HTMLBaseElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-base-element
+[HTMLConstructor]
interface HTMLBaseElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString href;
diff --git a/dom/webidl/HTMLBodyElement.webidl b/dom/webidl/HTMLBodyElement.webidl
index 95df2d43a..e17758491 100644
--- a/dom/webidl/HTMLBodyElement.webidl
+++ b/dom/webidl/HTMLBodyElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLBodyElement : HTMLElement {
};
diff --git a/dom/webidl/HTMLButtonElement.webidl b/dom/webidl/HTMLButtonElement.webidl
index 579efa39c..5d7965cfb 100644
--- a/dom/webidl/HTMLButtonElement.webidl
+++ b/dom/webidl/HTMLButtonElement.webidl
@@ -11,6 +11,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-button-element
+[HTMLConstructor]
interface HTMLButtonElement : HTMLElement {
[SetterThrows, Pure]
attribute boolean autofocus;
diff --git a/dom/webidl/HTMLCanvasElement.webidl b/dom/webidl/HTMLCanvasElement.webidl
index 15e94f154..4a0c4499b 100644
--- a/dom/webidl/HTMLCanvasElement.webidl
+++ b/dom/webidl/HTMLCanvasElement.webidl
@@ -13,6 +13,7 @@
interface nsISupports;
interface Variant;
+[HTMLConstructor]
interface HTMLCanvasElement : HTMLElement {
[Pure, SetterThrows]
attribute unsigned long width;
diff --git a/dom/webidl/HTMLDListElement.webidl b/dom/webidl/HTMLDListElement.webidl
index 08020a497..4e3fa88d8 100644
--- a/dom/webidl/HTMLDListElement.webidl
+++ b/dom/webidl/HTMLDListElement.webidl
@@ -13,6 +13,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-dl-element
+[HTMLConstructor]
interface HTMLDListElement : HTMLElement {
};
diff --git a/dom/webidl/HTMLDataElement.webidl b/dom/webidl/HTMLDataElement.webidl
index 821b8b483..6b9a7f19a 100644
--- a/dom/webidl/HTMLDataElement.webidl
+++ b/dom/webidl/HTMLDataElement.webidl
@@ -7,6 +7,7 @@
* http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-data-element
*/
+[HTMLConstructor]
interface HTMLDataElement : HTMLElement {
[SetterThrows]
attribute DOMString value;
diff --git a/dom/webidl/HTMLDataListElement.webidl b/dom/webidl/HTMLDataListElement.webidl
index 83b20cd2b..4c38fddf3 100644
--- a/dom/webidl/HTMLDataListElement.webidl
+++ b/dom/webidl/HTMLDataListElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLDataListElement : HTMLElement {
readonly attribute HTMLCollection options;
};
diff --git a/dom/webidl/HTMLDetailsElement.webidl b/dom/webidl/HTMLDetailsElement.webidl
index 104606eb1..f57f5c93c 100644
--- a/dom/webidl/HTMLDetailsElement.webidl
+++ b/dom/webidl/HTMLDetailsElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLDetailsElement : HTMLElement {
[SetterThrows]
attribute boolean open;
diff --git a/dom/webidl/HTMLDirectoryElement.webidl b/dom/webidl/HTMLDirectoryElement.webidl
index 9d5160af1..d50b4d330 100644
--- a/dom/webidl/HTMLDirectoryElement.webidl
+++ b/dom/webidl/HTMLDirectoryElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
+[HTMLConstructor]
interface HTMLDirectoryElement : HTMLElement {
[SetterThrows, Pure]
attribute boolean compact;
diff --git a/dom/webidl/HTMLDivElement.webidl b/dom/webidl/HTMLDivElement.webidl
index f50e2aad0..584c01e0e 100644
--- a/dom/webidl/HTMLDivElement.webidl
+++ b/dom/webidl/HTMLDivElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLDivElement : HTMLElement {};
partial interface HTMLDivElement {
diff --git a/dom/webidl/HTMLElement.webidl b/dom/webidl/HTMLElement.webidl
index 5ce5024e6..890341ec0 100644
--- a/dom/webidl/HTMLElement.webidl
+++ b/dom/webidl/HTMLElement.webidl
@@ -12,6 +12,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLElement : Element {
// metadata attributes
attribute DOMString title;
diff --git a/dom/webidl/HTMLEmbedElement.webidl b/dom/webidl/HTMLEmbedElement.webidl
index 36668595b..d4e678011 100644
--- a/dom/webidl/HTMLEmbedElement.webidl
+++ b/dom/webidl/HTMLEmbedElement.webidl
@@ -13,7 +13,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-embed-element
-[NeedResolve]
+[HTMLConstructor, NeedResolve]
interface HTMLEmbedElement : HTMLElement {
[Pure, SetterThrows]
attribute DOMString src;
diff --git a/dom/webidl/HTMLFieldSetElement.webidl b/dom/webidl/HTMLFieldSetElement.webidl
index 6c9eee52b..f61cdbf5b 100644
--- a/dom/webidl/HTMLFieldSetElement.webidl
+++ b/dom/webidl/HTMLFieldSetElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLFieldSetElement : HTMLElement {
[SetterThrows]
attribute boolean disabled;
diff --git a/dom/webidl/HTMLFontElement.webidl b/dom/webidl/HTMLFontElement.webidl
index 781dabb88..09c0eae9b 100644
--- a/dom/webidl/HTMLFontElement.webidl
+++ b/dom/webidl/HTMLFontElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLFontElement : HTMLElement {
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString color;
[SetterThrows] attribute DOMString face;
diff --git a/dom/webidl/HTMLFormElement.webidl b/dom/webidl/HTMLFormElement.webidl
index 8d248e1a5..dcc909483 100644
--- a/dom/webidl/HTMLFormElement.webidl
+++ b/dom/webidl/HTMLFormElement.webidl
@@ -11,7 +11,7 @@
* and create derivative works of this document.
*/
-[OverrideBuiltins, LegacyUnenumerableNamedProperties]
+[OverrideBuiltins, LegacyUnenumerableNamedProperties, HTMLConstructor]
interface HTMLFormElement : HTMLElement {
[Pure, SetterThrows]
attribute DOMString acceptCharset;
diff --git a/dom/webidl/HTMLFrameElement.webidl b/dom/webidl/HTMLFrameElement.webidl
index 9c5aca7c4..e7d702143 100644
--- a/dom/webidl/HTMLFrameElement.webidl
+++ b/dom/webidl/HTMLFrameElement.webidl
@@ -11,6 +11,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#htmlframeelement
+[HTMLConstructor]
interface HTMLFrameElement : HTMLElement {
[SetterThrows]
attribute DOMString name;
diff --git a/dom/webidl/HTMLFrameSetElement.webidl b/dom/webidl/HTMLFrameSetElement.webidl
index ce00d487f..cf4e34bcf 100644
--- a/dom/webidl/HTMLFrameSetElement.webidl
+++ b/dom/webidl/HTMLFrameSetElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLFrameSetElement : HTMLElement {
[SetterThrows]
attribute DOMString cols;
diff --git a/dom/webidl/HTMLHRElement.webidl b/dom/webidl/HTMLHRElement.webidl
index 0495e43b3..9359d74b9 100644
--- a/dom/webidl/HTMLHRElement.webidl
+++ b/dom/webidl/HTMLHRElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-hr-element
+[HTMLConstructor]
interface HTMLHRElement : HTMLElement {
};
diff --git a/dom/webidl/HTMLHeadElement.webidl b/dom/webidl/HTMLHeadElement.webidl
index 0ad45e384..b649712a6 100644
--- a/dom/webidl/HTMLHeadElement.webidl
+++ b/dom/webidl/HTMLHeadElement.webidl
@@ -12,5 +12,6 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-head-element
+[HTMLConstructor]
interface HTMLHeadElement : HTMLElement {};
diff --git a/dom/webidl/HTMLHeadingElement.webidl b/dom/webidl/HTMLHeadingElement.webidl
index c07e5cb99..97e471025 100644
--- a/dom/webidl/HTMLHeadingElement.webidl
+++ b/dom/webidl/HTMLHeadingElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements
+[HTMLConstructor]
interface HTMLHeadingElement : HTMLElement {
};
diff --git a/dom/webidl/HTMLHtmlElement.webidl b/dom/webidl/HTMLHtmlElement.webidl
index b06de7761..f9174a185 100644
--- a/dom/webidl/HTMLHtmlElement.webidl
+++ b/dom/webidl/HTMLHtmlElement.webidl
@@ -13,6 +13,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-html-element
+[HTMLConstructor]
interface HTMLHtmlElement : HTMLElement {};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
diff --git a/dom/webidl/HTMLIFrameElement.webidl b/dom/webidl/HTMLIFrameElement.webidl
index 0a1b49aff..4b9d1ce4c 100644
--- a/dom/webidl/HTMLIFrameElement.webidl
+++ b/dom/webidl/HTMLIFrameElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLIFrameElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString src;
diff --git a/dom/webidl/HTMLImageElement.webidl b/dom/webidl/HTMLImageElement.webidl
index 243c65509..c6bc3e4c8 100644
--- a/dom/webidl/HTMLImageElement.webidl
+++ b/dom/webidl/HTMLImageElement.webidl
@@ -16,7 +16,8 @@ interface imgIRequest;
interface URI;
interface nsIStreamListener;
-[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
+[HTMLConstructor,
+ NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
interface HTMLImageElement : HTMLElement {
[SetterThrows]
attribute DOMString alt;
diff --git a/dom/webidl/HTMLInputElement.webidl b/dom/webidl/HTMLInputElement.webidl
index cf3e9a4c7..deb5b5faf 100644
--- a/dom/webidl/HTMLInputElement.webidl
+++ b/dom/webidl/HTMLInputElement.webidl
@@ -21,6 +21,7 @@ enum SelectionMode {
interface nsIControllers;
+[HTMLConstructor]
interface HTMLInputElement : HTMLElement {
[Pure, SetterThrows]
attribute DOMString accept;
diff --git a/dom/webidl/HTMLLIElement.webidl b/dom/webidl/HTMLLIElement.webidl
index c20e00846..d36b96a0f 100644
--- a/dom/webidl/HTMLLIElement.webidl
+++ b/dom/webidl/HTMLLIElement.webidl
@@ -13,6 +13,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-li-element
+[HTMLConstructor]
interface HTMLLIElement : HTMLElement {
[SetterThrows, Pure]
attribute long value;
diff --git a/dom/webidl/HTMLLabelElement.webidl b/dom/webidl/HTMLLabelElement.webidl
index f44a56219..8a5c67fbc 100644
--- a/dom/webidl/HTMLLabelElement.webidl
+++ b/dom/webidl/HTMLLabelElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLLabelElement : HTMLElement {
readonly attribute HTMLFormElement? form;
attribute DOMString htmlFor;
diff --git a/dom/webidl/HTMLLegendElement.webidl b/dom/webidl/HTMLLegendElement.webidl
index 0ce4ae88b..8feb70dcb 100644
--- a/dom/webidl/HTMLLegendElement.webidl
+++ b/dom/webidl/HTMLLegendElement.webidl
@@ -13,6 +13,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-legend-element
+[HTMLConstructor]
interface HTMLLegendElement : HTMLElement {
readonly attribute HTMLFormElement? form;
};
diff --git a/dom/webidl/HTMLLinkElement.webidl b/dom/webidl/HTMLLinkElement.webidl
index ec094e55e..c5d8eec4f 100644
--- a/dom/webidl/HTMLLinkElement.webidl
+++ b/dom/webidl/HTMLLinkElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-link-element
+[HTMLConstructor]
interface HTMLLinkElement : HTMLElement {
[Pure]
attribute boolean disabled;
diff --git a/dom/webidl/HTMLMapElement.webidl b/dom/webidl/HTMLMapElement.webidl
index 88fe4e54c..cf4d40426 100644
--- a/dom/webidl/HTMLMapElement.webidl
+++ b/dom/webidl/HTMLMapElement.webidl
@@ -11,6 +11,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-map-element
+[HTMLConstructor]
interface HTMLMapElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString name;
diff --git a/dom/webidl/HTMLMenuElement.webidl b/dom/webidl/HTMLMenuElement.webidl
index ff81a7c80..7658d8380 100644
--- a/dom/webidl/HTMLMenuElement.webidl
+++ b/dom/webidl/HTMLMenuElement.webidl
@@ -15,6 +15,7 @@
interface MenuBuilder;
// http://www.whatwg.org/specs/web-apps/current-work/#the-menu-element
+[HTMLConstructor]
interface HTMLMenuElement : HTMLElement {
[SetterThrows]
attribute DOMString type;
diff --git a/dom/webidl/HTMLMenuItemElement.webidl b/dom/webidl/HTMLMenuItemElement.webidl
index 7064885a1..1a7750483 100644
--- a/dom/webidl/HTMLMenuItemElement.webidl
+++ b/dom/webidl/HTMLMenuItemElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-menuitem-element
+[HTMLConstructor]
interface HTMLMenuItemElement : HTMLElement {
[SetterThrows]
attribute DOMString type;
diff --git a/dom/webidl/HTMLMetaElement.webidl b/dom/webidl/HTMLMetaElement.webidl
index 5b7b0f92c..171f67305 100644
--- a/dom/webidl/HTMLMetaElement.webidl
+++ b/dom/webidl/HTMLMetaElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-meta-element
+[HTMLConstructor]
interface HTMLMetaElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString name;
diff --git a/dom/webidl/HTMLMeterElement.webidl b/dom/webidl/HTMLMeterElement.webidl
index 104e00353..484ece85c 100644
--- a/dom/webidl/HTMLMeterElement.webidl
+++ b/dom/webidl/HTMLMeterElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-meter-element
+[HTMLConstructor]
interface HTMLMeterElement : HTMLElement {
[SetterThrows]
attribute double value;
diff --git a/dom/webidl/HTMLModElement.webidl b/dom/webidl/HTMLModElement.webidl
index 45086cceb..654aca272 100644
--- a/dom/webidl/HTMLModElement.webidl
+++ b/dom/webidl/HTMLModElement.webidl
@@ -11,6 +11,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#attributes-common-to-ins-and-del-elements
+[HTMLConstructor]
interface HTMLModElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString cite;
diff --git a/dom/webidl/HTMLOListElement.webidl b/dom/webidl/HTMLOListElement.webidl
index f41abf3ea..5b10d4807 100644
--- a/dom/webidl/HTMLOListElement.webidl
+++ b/dom/webidl/HTMLOListElement.webidl
@@ -13,6 +13,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-ol-element
+[HTMLConstructor]
interface HTMLOListElement : HTMLElement {
[SetterThrows]
attribute boolean reversed;
diff --git a/dom/webidl/HTMLObjectElement.webidl b/dom/webidl/HTMLObjectElement.webidl
index ebb95ab09..797b04119 100644
--- a/dom/webidl/HTMLObjectElement.webidl
+++ b/dom/webidl/HTMLObjectElement.webidl
@@ -13,7 +13,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-object-element
-[NeedResolve, UnsafeInPrerendering]
+[HTMLConstructor, NeedResolve, UnsafeInPrerendering]
interface HTMLObjectElement : HTMLElement {
[Pure, SetterThrows]
attribute DOMString data;
diff --git a/dom/webidl/HTMLOptGroupElement.webidl b/dom/webidl/HTMLOptGroupElement.webidl
index a23aee30d..18d2e5dfa 100644
--- a/dom/webidl/HTMLOptGroupElement.webidl
+++ b/dom/webidl/HTMLOptGroupElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLOptGroupElement : HTMLElement {
[SetterThrows]
attribute boolean disabled;
diff --git a/dom/webidl/HTMLOptionElement.webidl b/dom/webidl/HTMLOptionElement.webidl
index c80bedeef..34e6e6c23 100644
--- a/dom/webidl/HTMLOptionElement.webidl
+++ b/dom/webidl/HTMLOptionElement.webidl
@@ -11,7 +11,7 @@
* and create derivative works of this document.
*/
-[NamedConstructor=Option(optional DOMString text, optional DOMString value, optional boolean defaultSelected, optional boolean selected)]
+[HTMLConstructor, NamedConstructor=Option(optional DOMString text, optional DOMString value, optional boolean defaultSelected, optional boolean selected)]
interface HTMLOptionElement : HTMLElement {
[SetterThrows]
attribute boolean disabled;
diff --git a/dom/webidl/HTMLOutputElement.webidl b/dom/webidl/HTMLOutputElement.webidl
index d0e4ecbe6..698fd08d1 100644
--- a/dom/webidl/HTMLOutputElement.webidl
+++ b/dom/webidl/HTMLOutputElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-output-element
+[HTMLConstructor]
interface HTMLOutputElement : HTMLElement {
[PutForwards=value, Constant]
readonly attribute DOMTokenList htmlFor;
diff --git a/dom/webidl/HTMLParagraphElement.webidl b/dom/webidl/HTMLParagraphElement.webidl
index 2a626d257..b72f627d1 100644
--- a/dom/webidl/HTMLParagraphElement.webidl
+++ b/dom/webidl/HTMLParagraphElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-p-element
+[HTMLConstructor]
interface HTMLParagraphElement : HTMLElement {
};
diff --git a/dom/webidl/HTMLParamElement.webidl b/dom/webidl/HTMLParamElement.webidl
index e2c7e8d7f..b9f17d6f5 100644
--- a/dom/webidl/HTMLParamElement.webidl
+++ b/dom/webidl/HTMLParamElement.webidl
@@ -13,6 +13,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-param-element
+[HTMLConstructor]
interface HTMLParamElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString name;
diff --git a/dom/webidl/HTMLPictureElement.webidl b/dom/webidl/HTMLPictureElement.webidl
index eff30f750..387eee78d 100644
--- a/dom/webidl/HTMLPictureElement.webidl
+++ b/dom/webidl/HTMLPictureElement.webidl
@@ -4,5 +4,6 @@
* You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+[HTMLConstructor]
interface HTMLPictureElement : HTMLElement {
};
diff --git a/dom/webidl/HTMLPreElement.webidl b/dom/webidl/HTMLPreElement.webidl
index db220b74c..b128e824d 100644
--- a/dom/webidl/HTMLPreElement.webidl
+++ b/dom/webidl/HTMLPreElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-pre-element
+[HTMLConstructor]
interface HTMLPreElement : HTMLElement {
};
diff --git a/dom/webidl/HTMLProgressElement.webidl b/dom/webidl/HTMLProgressElement.webidl
index 028728e22..5729829cd 100644
--- a/dom/webidl/HTMLProgressElement.webidl
+++ b/dom/webidl/HTMLProgressElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLProgressElement : HTMLElement {
[SetterThrows]
attribute double value;
diff --git a/dom/webidl/HTMLQuoteElement.webidl b/dom/webidl/HTMLQuoteElement.webidl
index a266dd353..5cf9c4c29 100644
--- a/dom/webidl/HTMLQuoteElement.webidl
+++ b/dom/webidl/HTMLQuoteElement.webidl
@@ -12,6 +12,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-blockquote-element
+[HTMLConstructor]
interface HTMLQuoteElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString cite;
diff --git a/dom/webidl/HTMLScriptElement.webidl b/dom/webidl/HTMLScriptElement.webidl
index 5b64c42d7..8bcffe8d7 100644
--- a/dom/webidl/HTMLScriptElement.webidl
+++ b/dom/webidl/HTMLScriptElement.webidl
@@ -8,6 +8,7 @@
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
*/
+[HTMLConstructor]
interface HTMLScriptElement : HTMLElement {
[SetterThrows]
attribute DOMString src;
diff --git a/dom/webidl/HTMLSelectElement.webidl b/dom/webidl/HTMLSelectElement.webidl
index b18ca3634..9a9b33040 100644
--- a/dom/webidl/HTMLSelectElement.webidl
+++ b/dom/webidl/HTMLSelectElement.webidl
@@ -7,6 +7,7 @@
* http://www.whatwg.org/html/#the-select-element
*/
+[HTMLConstructor]
interface HTMLSelectElement : HTMLElement {
[SetterThrows, Pure]
attribute boolean autofocus;
diff --git a/dom/webidl/HTMLSourceElement.webidl b/dom/webidl/HTMLSourceElement.webidl
index 10b8e6fd5..402b4491a 100644
--- a/dom/webidl/HTMLSourceElement.webidl
+++ b/dom/webidl/HTMLSourceElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLSourceElement : HTMLElement {
[SetterThrows]
attribute DOMString src;
diff --git a/dom/webidl/HTMLSpanElement.webidl b/dom/webidl/HTMLSpanElement.webidl
index 43a2d97f2..6f65cdfb3 100644
--- a/dom/webidl/HTMLSpanElement.webidl
+++ b/dom/webidl/HTMLSpanElement.webidl
@@ -12,4 +12,5 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-span-element
+[HTMLConstructor]
interface HTMLSpanElement : HTMLElement {};
diff --git a/dom/webidl/HTMLStyleElement.webidl b/dom/webidl/HTMLStyleElement.webidl
index 7ed01a8f1..b547d6976 100644
--- a/dom/webidl/HTMLStyleElement.webidl
+++ b/dom/webidl/HTMLStyleElement.webidl
@@ -8,6 +8,7 @@
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
*/
+[HTMLConstructor]
interface HTMLStyleElement : HTMLElement {
[Pure]
attribute boolean disabled;
diff --git a/dom/webidl/HTMLTableCaptionElement.webidl b/dom/webidl/HTMLTableCaptionElement.webidl
index 688b9f925..e9d01527e 100644
--- a/dom/webidl/HTMLTableCaptionElement.webidl
+++ b/dom/webidl/HTMLTableCaptionElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLTableCaptionElement : HTMLElement {};
partial interface HTMLTableCaptionElement {
diff --git a/dom/webidl/HTMLTableCellElement.webidl b/dom/webidl/HTMLTableCellElement.webidl
index e970a5040..f0a251d27 100644
--- a/dom/webidl/HTMLTableCellElement.webidl
+++ b/dom/webidl/HTMLTableCellElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLTableCellElement : HTMLElement {
[SetterThrows]
attribute unsigned long colSpan;
diff --git a/dom/webidl/HTMLTableColElement.webidl b/dom/webidl/HTMLTableColElement.webidl
index c927541a3..cf217548a 100644
--- a/dom/webidl/HTMLTableColElement.webidl
+++ b/dom/webidl/HTMLTableColElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLTableColElement : HTMLElement {
[SetterThrows]
attribute unsigned long span;
diff --git a/dom/webidl/HTMLTableElement.webidl b/dom/webidl/HTMLTableElement.webidl
index a06f590e0..2653524d6 100644
--- a/dom/webidl/HTMLTableElement.webidl
+++ b/dom/webidl/HTMLTableElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLTableElement : HTMLElement {
[SetterThrows]
attribute HTMLTableCaptionElement? caption;
diff --git a/dom/webidl/HTMLTableRowElement.webidl b/dom/webidl/HTMLTableRowElement.webidl
index 2a356a20e..7d63bcc04 100644
--- a/dom/webidl/HTMLTableRowElement.webidl
+++ b/dom/webidl/HTMLTableRowElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLTableRowElement : HTMLElement {
readonly attribute long rowIndex;
readonly attribute long sectionRowIndex;
diff --git a/dom/webidl/HTMLTableSectionElement.webidl b/dom/webidl/HTMLTableSectionElement.webidl
index 310d0ece6..881972ac2 100644
--- a/dom/webidl/HTMLTableSectionElement.webidl
+++ b/dom/webidl/HTMLTableSectionElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLTableSectionElement : HTMLElement {
readonly attribute HTMLCollection rows;
[Throws]
diff --git a/dom/webidl/HTMLTemplateElement.webidl b/dom/webidl/HTMLTemplateElement.webidl
index c518995f6..f77eeaa42 100644
--- a/dom/webidl/HTMLTemplateElement.webidl
+++ b/dom/webidl/HTMLTemplateElement.webidl
@@ -9,6 +9,7 @@
* liability, trademark and document use rules apply.
*/
+[HTMLConstructor]
interface HTMLTemplateElement : HTMLElement {
readonly attribute DocumentFragment content;
};
diff --git a/dom/webidl/HTMLTextAreaElement.webidl b/dom/webidl/HTMLTextAreaElement.webidl
index 4df687a0b..8c5dc0fb9 100644
--- a/dom/webidl/HTMLTextAreaElement.webidl
+++ b/dom/webidl/HTMLTextAreaElement.webidl
@@ -14,6 +14,7 @@
interface nsIEditor;
interface MozControllers;
+[HTMLConstructor]
interface HTMLTextAreaElement : HTMLElement {
// attribute DOMString autocomplete;
[SetterThrows, Pure]
diff --git a/dom/webidl/HTMLTimeElement.webidl b/dom/webidl/HTMLTimeElement.webidl
index 517ca9981..ea37405bf 100644
--- a/dom/webidl/HTMLTimeElement.webidl
+++ b/dom/webidl/HTMLTimeElement.webidl
@@ -7,6 +7,7 @@
* http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-time-element
*/
+[HTMLConstructor]
interface HTMLTimeElement : HTMLElement {
[SetterThrows]
attribute DOMString dateTime;
diff --git a/dom/webidl/HTMLTitleElement.webidl b/dom/webidl/HTMLTitleElement.webidl
index e6c8f2c61..c8fe3e46a 100644
--- a/dom/webidl/HTMLTitleElement.webidl
+++ b/dom/webidl/HTMLTitleElement.webidl
@@ -7,6 +7,7 @@
* http://www.whatwg.org/specs/web-apps/current-work/#the-title-element
*/
+[HTMLConstructor]
interface HTMLTitleElement : HTMLElement {
[Throws]
attribute DOMString text;
diff --git a/dom/webidl/HTMLTrackElement.webidl b/dom/webidl/HTMLTrackElement.webidl
index dd88e9beb..e6d366f10 100644
--- a/dom/webidl/HTMLTrackElement.webidl
+++ b/dom/webidl/HTMLTrackElement.webidl
@@ -7,6 +7,7 @@
* http://www.whatwg.org/specs/web-apps/current-work/#the-track-element
*/
+[HTMLConstructor]
interface HTMLTrackElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString kind;
diff --git a/dom/webidl/HTMLUListElement.webidl b/dom/webidl/HTMLUListElement.webidl
index 0528198c9..01ca7afce 100644
--- a/dom/webidl/HTMLUListElement.webidl
+++ b/dom/webidl/HTMLUListElement.webidl
@@ -13,6 +13,7 @@
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-ul-element
+[HTMLConstructor]
interface HTMLUListElement : HTMLElement {
};
diff --git a/dom/webidl/HTMLVideoElement.webidl b/dom/webidl/HTMLVideoElement.webidl
index af28d5418..fd552f7e0 100644
--- a/dom/webidl/HTMLVideoElement.webidl
+++ b/dom/webidl/HTMLVideoElement.webidl
@@ -11,6 +11,7 @@
* and create derivative works of this document.
*/
+[HTMLConstructor]
interface HTMLVideoElement : HTMLMediaElement {
[SetterThrows]
attribute unsigned long width;