Fix broken spec link on Window::Document

This commit is contained in:
Corey Farwell 2016-01-14 21:13:14 -05:00
parent d28fb42201
commit f6dc6ad463

View file

@ -420,7 +420,7 @@ impl WindowMethods for Window {
self.main_thread_script_chan().send(MainThreadScriptMsg::ExitWindow(self.id.clone())).unwrap();
}
// https://html.spec.whatwg.org/multipage/#dom-document-0
// https://html.spec.whatwg.org/multipage/#dom-document-2
fn Document(&self) -> Root<Document> {
Root::from_ref(self.browsing_context().as_ref().unwrap().active_document())
}