aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlformelement.rs
diff options
context:
space:
mode:
authorMathieu Agopian <mathieu@agopian.info>2015-12-18 17:02:41 +0100
committerMathieu Agopian <mathieu@agopian.info>2015-12-18 17:02:41 +0100
commit11234f5370631550e925e6357881ac0dea11a120 (patch)
treee9a75b941acec5e5b3ff3f6ed8559e24fa282ab7 /components/script/dom/htmlformelement.rs
parent6764cf0ee9ce78d2d3498aec18e633e20455e050 (diff)
downloadservo-11234f5370631550e925e6357881ac0dea11a120.tar.gz
servo-11234f5370631550e925e6357881ac0dea11a120.zip
Use Url.join instead of UrlParser.base_url(...).parse (#9002)
Diffstat (limited to 'components/script/dom/htmlformelement.rs')
-rw-r--r--components/script/dom/htmlformelement.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs
index a5c21fff47d..f3c98dec0d9 100644
--- a/components/script/dom/htmlformelement.rs
+++ b/components/script/dom/htmlformelement.rs
@@ -35,7 +35,6 @@ use script_task::{MainThreadScriptMsg, ScriptChan};
use std::borrow::ToOwned;
use std::cell::Cell;
use string_cache::Atom;
-use url::UrlParser;
use url::form_urlencoded::serialize;
use util::str::DOMString;
@@ -200,7 +199,7 @@ impl HTMLFormElement {
action = DOMString::from(base.serialize());
}
// Step 9-11
- let action_components = match UrlParser::new().base_url(base).parse(&action) {
+ let action_components = match base.join(&action) {
Ok(url) => url,
Err(_) => return
};