mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use base_url instead of url when parsing href
spec: https://html.spec.whatwg.org/multipage/infrastructure.html#resolving-urls This change makes more url parsing tests pass.
This commit is contained in:
parent
1bc94c132e
commit
e6b64f0e3c
3 changed files with 1 additions and 169 deletions
|
@ -64,7 +64,7 @@ impl HTMLAnchorElement {
|
|||
let attribute = self.upcast::<Element>().get_attribute(&ns!(), &atom!("href"));
|
||||
*self.url.borrow_mut() = attribute.and_then(|attribute| {
|
||||
let document = document_from_node(self);
|
||||
document.url().join(&attribute.value()).ok()
|
||||
document.base_url().join(&attribute.value()).ok()
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue