mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
add origin to location and url api
This commit is contained in:
parent
1ba1fb0b7f
commit
1ee9ccba21
11 changed files with 62 additions and 607 deletions
|
@ -176,6 +176,11 @@ impl URLMethods for URL {
|
|||
UrlHelper::SetProtocol(&mut self.url.borrow_mut(), value);
|
||||
}
|
||||
|
||||
// https://url.spec.whatwg.org/#dom-url-origin
|
||||
fn Origin(&self) -> USVString {
|
||||
UrlHelper::Origin(&self.url.borrow())
|
||||
}
|
||||
|
||||
// https://url.spec.whatwg.org/#dom-url-search
|
||||
fn Search(&self) -> USVString {
|
||||
UrlHelper::Search(&self.url.borrow())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue