diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-04-14 10:44:51 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-04-14 10:44:51 +0200 |
commit | 49393a87623d3d7d0453689bf0d633753dd8921d (patch) | |
tree | e8448fb4b5ef7d7c7599bd01b3116267ecf81985 /components/script/dom/document.rs | |
parent | 4997d3a112354a407365fede1ab1944834a2e13c (diff) | |
download | servo-49393a87623d3d7d0453689bf0d633753dd8921d.tar.gz servo-49393a87623d3d7d0453689bf0d633753dd8921d.zip |
Update some URLs.
The HTML spec's division into pages is not stable, so it is safer to use the
URL without a specific page (which will redirect).
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 6d8ba9c9489..5a6aab11ba3 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -124,7 +124,7 @@ pub struct Document { focused: MutNullableJS<Element>, /// The script element that is currently executing. current_script: MutNullableJS<HTMLScriptElement>, - /// https://html.spec.whatwg.org/multipage/webappapis.html#concept-n-noscript + /// https://html.spec.whatwg.org/multipage/#concept-n-noscript /// True if scripting is enabled for all scripts in this document scripting_enabled: Cell<bool>, } @@ -249,7 +249,7 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> { self.is_html_document } - // https://html.spec.whatwg.org/multipage/browsers.html#fully-active + // https://html.spec.whatwg.org/multipage/#fully-active fn is_fully_active(self) -> bool { let window = self.window.root(); let window = window.r(); @@ -418,7 +418,7 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> { } } - // https://html.spec.whatwg.org/multipage/dom.html#current-document-readiness + // https://html.spec.whatwg.org/multipage/#current-document-readiness fn set_ready_state(self, state: DocumentReadyState) { self.ready_state.set(state); @@ -1388,17 +1388,17 @@ impl<'a> DocumentMethods for JSRef<'a, Document> { root.query_selector_all(selectors) } - // https://html.spec.whatwg.org/multipage/dom.html#dom-document-readystate + // https://html.spec.whatwg.org/multipage/#dom-document-readystate fn ReadyState(self) -> DocumentReadyState { self.ready_state.get() } - // https://html.spec.whatwg.org/multipage/browsers.html#dom-document-defaultview + // https://html.spec.whatwg.org/multipage/#dom-document-defaultview fn DefaultView(self) -> Temporary<Window> { Temporary::new(self.window) } - // https://html.spec.whatwg.org/multipage/dom.html#dom-document-cookie + // https://html.spec.whatwg.org/multipage/#dom-document-cookie fn GetCookie(self) -> Fallible<DOMString> { //TODO: return empty string for cookie-averse Document let url = self.url(); @@ -1412,7 +1412,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> { Ok(cookies.unwrap_or("".to_owned())) } - // https://html.spec.whatwg.org/multipage/dom.html#dom-document-cookie + // https://html.spec.whatwg.org/multipage/#dom-document-cookie fn SetCookie(self, cookie: DOMString) -> ErrorResult { //TODO: ignore for cookie-averse Document let url = self.url(); |