mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Use Url.join instead of UrlParser.base_url(...).parse (#9002)
This commit is contained in:
parent
6764cf0ee9
commit
11234f5370
41 changed files with 58 additions and 64 deletions
|
@ -41,7 +41,7 @@ use std::cell::Cell;
|
|||
use std::mem;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use string_cache::Atom;
|
||||
use url::{Url, UrlParser};
|
||||
use url::Url;
|
||||
use util::str::{DOMString, HTML_SPACE_CHARACTERS, StaticStringVec};
|
||||
|
||||
#[dom_struct]
|
||||
|
@ -263,7 +263,7 @@ impl HTMLScriptElement {
|
|||
}
|
||||
|
||||
// Step 15.3
|
||||
match UrlParser::new().base_url(&base_url).parse(&src) {
|
||||
match base_url.join(&src) {
|
||||
Err(_) => {
|
||||
// Step 15.4
|
||||
error!("error parsing URL for script {}", &**src);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue