diff options
Diffstat (limited to 'components/script/dom/url.rs')
-rw-r--r-- | components/script/dom/url.rs | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/components/script/dom/url.rs b/components/script/dom/url.rs index 4a3bb19a776..9ff22b53597 100644 --- a/components/script/dom/url.rs +++ b/components/script/dom/url.rs @@ -88,42 +88,42 @@ impl URL { } impl URLMethods for URL { - // https://url.spec.whatwg.org/#dom-urlutils-hash + // https://url.spec.whatwg.org/#dom-url-hash fn Hash(&self) -> USVString { UrlHelper::Hash(&self.url.borrow()) } - // https://url.spec.whatwg.org/#dom-urlutils-hash + // https://url.spec.whatwg.org/#dom-url-hash fn SetHash(&self, value: USVString) { UrlHelper::SetHash(&mut self.url.borrow_mut(), value); } - // https://url.spec.whatwg.org/#dom-urlutils-host + // https://url.spec.whatwg.org/#dom-url-host fn Host(&self) -> USVString { UrlHelper::Host(&self.url.borrow()) } - // https://url.spec.whatwg.org/#dom-urlutils-host + // https://url.spec.whatwg.org/#dom-url-host fn SetHost(&self, value: USVString) { UrlHelper::SetHost(&mut self.url.borrow_mut(), value); } - // https://url.spec.whatwg.org/#dom-urlutils-hostname + // https://url.spec.whatwg.org/#dom-url-hostname fn Hostname(&self) -> USVString { UrlHelper::Hostname(&self.url.borrow()) } - // https://url.spec.whatwg.org/#dom-urlutils-hostname + // https://url.spec.whatwg.org/#dom-url-hostname fn SetHostname(&self, value: USVString) { UrlHelper::SetHostname(&mut self.url.borrow_mut(), value); } - // https://url.spec.whatwg.org/#dom-urlutils-href + // https://url.spec.whatwg.org/#dom-url-href fn Href(&self) -> USVString { UrlHelper::Href(&self.url.borrow()) } - // https://url.spec.whatwg.org/#dom-urlutils-href + // https://url.spec.whatwg.org/#dom-url-href fn SetHref(&self, value: USVString) -> ErrorResult { match parse_with_base(value, self.base.as_ref()) { Ok(url) => { @@ -136,67 +136,67 @@ impl URLMethods for URL { } } - // https://url.spec.whatwg.org/#dom-urlutils-password + // https://url.spec.whatwg.org/#dom-url-password fn Password(&self) -> USVString { UrlHelper::Password(&self.url.borrow()) } - // https://url.spec.whatwg.org/#dom-urlutils-password + // https://url.spec.whatwg.org/#dom-url-password fn SetPassword(&self, value: USVString) { UrlHelper::SetPassword(&mut self.url.borrow_mut(), value); } - // https://url.spec.whatwg.org/#dom-urlutils-pathname + // https://url.spec.whatwg.org/#dom-url-pathname fn Pathname(&self) -> USVString { UrlHelper::Pathname(&self.url.borrow()) } - // https://url.spec.whatwg.org/#dom-urlutils-pathname + // https://url.spec.whatwg.org/#dom-url-pathname fn SetPathname(&self, value: USVString) { UrlHelper::SetPathname(&mut self.url.borrow_mut(), value); } - // https://url.spec.whatwg.org/#dom-urlutils-port + // https://url.spec.whatwg.org/#dom-url-port fn Port(&self) -> USVString { UrlHelper::Port(&self.url.borrow()) } - // https://url.spec.whatwg.org/#dom-urlutils-port + // https://url.spec.whatwg.org/#dom-url-port fn SetPort(&self, value: USVString) { UrlHelper::SetPort(&mut self.url.borrow_mut(), value); } - // https://url.spec.whatwg.org/#dom-urlutils-protocol + // https://url.spec.whatwg.org/#dom-url-protocol fn Protocol(&self) -> USVString { UrlHelper::Protocol(&self.url.borrow()) } - // https://url.spec.whatwg.org/#dom-urlutils-protocol + // https://url.spec.whatwg.org/#dom-url-protocol fn SetProtocol(&self, value: USVString) { UrlHelper::SetProtocol(&mut self.url.borrow_mut(), value); } - // https://url.spec.whatwg.org/#dom-urlutils-search + // https://url.spec.whatwg.org/#dom-url-search fn Search(&self) -> USVString { UrlHelper::Search(&self.url.borrow()) } - // https://url.spec.whatwg.org/#dom-urlutils-search + // https://url.spec.whatwg.org/#dom-url-search fn SetSearch(&self, value: USVString) { UrlHelper::SetSearch(&mut self.url.borrow_mut(), value); } - // https://url.spec.whatwg.org/#URLUtils-stringification-behavior + // https://url.spec.whatwg.org/#dom-url-href fn Stringifier(&self) -> DOMString { self.Href().0 } - // https://url.spec.whatwg.org/#dom-urlutils-username + // https://url.spec.whatwg.org/#dom-url-username fn Username(&self) -> USVString { UrlHelper::Username(&self.url.borrow()) } - // https://url.spec.whatwg.org/#dom-urlutils-username + // https://url.spec.whatwg.org/#dom-url-username fn SetUsername(&self, value: USVString) { UrlHelper::SetUsername(&mut self.url.borrow_mut(), value); } |