mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
add readonly pathname function in location
pathname function implemented in UrlHelper 'url is null' check is skip for now
This commit is contained in:
parent
db104b738e
commit
77f3b25e65
3 changed files with 15 additions and 1 deletions
|
@ -46,6 +46,10 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
|
|||
UrlHelper::Href(&self.get_url())
|
||||
}
|
||||
|
||||
fn Pathname(self) -> USVString {
|
||||
UrlHelper::Pathname(&self.get_url())
|
||||
}
|
||||
|
||||
fn Stringify(self) -> DOMString {
|
||||
self.Href().0
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue