mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
script: Stop copying the document URL.
This commit is contained in:
parent
4d1be2f56c
commit
5dce5f0c97
8 changed files with 19 additions and 16 deletions
|
@ -50,7 +50,8 @@ impl HTMLBaseElement {
|
|||
let href = ElementCast::from_ref(self).get_attribute(&ns!(""), &atom!("href"))
|
||||
.expect("The frozen base url is only defined for base elements \
|
||||
that have a base url.");
|
||||
let base = document_from_node(self).fallback_base_url();
|
||||
let document = document_from_node(self);
|
||||
let base = document.fallback_base_url();
|
||||
let parsed = UrlParser::new().base_url(&base).parse(&href.value());
|
||||
parsed.unwrap_or(base)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue