mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implement URL's toJSON()
This commit is contained in:
parent
6840c18389
commit
66e3d545eb
5 changed files with 7 additions and 32 deletions
|
@ -279,4 +279,9 @@ impl URLMethods for URL {
|
|||
fn SetUsername(&self, value: USVString) {
|
||||
UrlHelper::SetUsername(&mut self.url.borrow_mut(), value);
|
||||
}
|
||||
|
||||
// https://url.spec.whatwg.org/#dom-url-tojson
|
||||
fn ToJSON(&self) -> USVString {
|
||||
self.Href()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue