diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs
index 497d6089804..bb70b39ddc7 100644
--- a/components/script/dom/htmlmediaelement.rs
+++ b/components/script/dom/htmlmediaelement.rs
@@ -8,7 +8,7 @@ use dom::attr::Attr;
use dom::bindings::cell::DOMRefCell;
use dom::bindings::codegen::Bindings::AttrBinding::AttrMethods;
use dom::bindings::codegen::Bindings::HTMLMediaElementBinding::CanPlayTypeResult;
-use dom::bindings::codegen::Bindings::HTMLMediaElementBinding::HTMLMediaElementConstants::*;
+use dom::bindings::codegen::Bindings::HTMLMediaElementBinding::HTMLMediaElementConstants;
use dom::bindings::codegen::Bindings::HTMLMediaElementBinding::HTMLMediaElementMethods;
use dom::bindings::codegen::Bindings::MediaErrorBinding::MediaErrorConstants::*;
use dom::bindings::codegen::Bindings::MediaErrorBinding::MediaErrorMethods;
@@ -45,13 +45,13 @@ use time::{self, Timespec, Duration};
#[dom_struct]
pub struct HTMLMediaElement {
htmlelement: HTMLElement,
- /// https://html.spec.whatwg.org/multipage/#dom-media-networkstate-2
+ /// https://html.spec.whatwg.org/multipage/#dom-media-networkstate
// FIXME(nox): Use an enum.
- network_state: Cell,
- /// https://html.spec.whatwg.org/multipage/#dom-media-readystate-2
+ network_state: Cell,
+ /// https://html.spec.whatwg.org/multipage/#dom-media-readystate
// FIXME(nox): Use an enum.
- ready_state: Cell,
- /// https://html.spec.whatwg.org/multipage/#dom-media-currentsrc-2
+ ready_state: Cell,
+ /// https://html.spec.whatwg.org/multipage/#dom-media-currentsrc
current_src: DOMRefCell,
// FIXME(nox): Document this one, I have no idea what it is used for.
generation_id: Cell,
@@ -59,9 +59,9 @@ pub struct HTMLMediaElement {
///
/// Reset to false every time the load algorithm is invoked.
fired_loadeddata_event: Cell,
- /// https://html.spec.whatwg.org/multipage/#dom-media-error-2
+ /// https://html.spec.whatwg.org/multipage/#dom-media-error
error: MutNullableJS,
- /// https://html.spec.whatwg.org/multipage/#dom-media-paused-2
+ /// https://html.spec.whatwg.org/multipage/#dom-media-paused
paused: Cell,
/// https://html.spec.whatwg.org/multipage/#attr-media-autoplay
autoplaying: Cell,
@@ -70,6 +70,27 @@ pub struct HTMLMediaElement {
video: DOMRefCell