aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/HTMLAudioElement.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/HTMLAudioElement.webidl')
-rw-r--r--components/script/dom/webidls/HTMLAudioElement.webidl6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/dom/webidls/HTMLAudioElement.webidl b/components/script/dom/webidls/HTMLAudioElement.webidl
index 5af7116e44c..bad06df5cfc 100644
--- a/components/script/dom/webidls/HTMLAudioElement.webidl
+++ b/components/script/dom/webidls/HTMLAudioElement.webidl
@@ -3,5 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmlaudioelement
-[Exposed=Window, HTMLConstructor, NamedConstructor=Audio(optional DOMString src)]
-interface HTMLAudioElement : HTMLMediaElement {};
+[Exposed=Window, NamedConstructor=Audio(optional DOMString src)]
+interface HTMLAudioElement : HTMLMediaElement {
+ [HTMLConstructor] constructor();
+};