aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-02-07 14:31:35 -0500
committerbors-servo <release+servo@mozilla.com>2014-02-07 14:31:35 -0500
commitfe1bb6a325a750566afaa26158b8ad5ab6cec59a (patch)
treee3290300b9a8528e33f89eaec8f1bad80a682f77 /src/components/script/html/hubbub_html_parser.rs
parenta1e98ada50eafa32c9eda2e6416ce3429612d4d0 (diff)
parent33f8ef618b5b6bd9014ba458c2caf24ffd28a794 (diff)
downloadservo-fe1bb6a325a750566afaa26158b8ad5ab6cec59a.tar.gz
servo-fe1bb6a325a750566afaa26158b8ad5ab6cec59a.zip
auto merge of #1608 : SimonSapin/servo/url, r=metajack
Align with spec terminology.
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index 09956f6a6ef..fb92b8d5f6d 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -19,7 +19,7 @@ use js::jsapi::JSContext;
use servo_msg::constellation_msg::SubpageId;
use servo_net::image_cache_task::ImageCacheTask;
use servo_net::resource_task::{Load, Payload, Done, ResourceTask, load_whole_resource};
-use servo_util::url::make_url;
+use servo_util::url::parse_url;
use servo_util::task::spawn_named;
use servo_util::namespace::Null;
use std::cast;
@@ -343,7 +343,7 @@ pub fn parse_html(cx: *JSContext,
(Some(rel), Some(href)) => {
if "stylesheet" == rel.value_ref() {
debug!("found CSS stylesheet: {:s}", href.value_ref());
- let url = make_url(href.Value(), Some(url2.clone()));
+ let url = parse_url(href.Value(), Some(url2.clone()));
css_chan2.send(CSSTaskNewFile(UrlProvenance(url)));
}
}
@@ -359,7 +359,7 @@ pub fn parse_html(cx: *JSContext,
let elem = &mut iframe_element.htmlelement.element;
let src_opt = elem.get_attribute(Null, "src").map(|x| x.Value());
for src in src_opt.iter() {
- let iframe_url = make_url(src.clone(), Some(url2.clone()));
+ let iframe_url = parse_url(src.clone(), Some(url2.clone()));
iframe_element.frame = Some(iframe_url.clone());
// Subpage Id
@@ -458,7 +458,7 @@ pub fn parse_html(cx: *JSContext,
match script.get_attribute(Null, "src") {
Some(src) => {
debug!("found script: {:s}", src.Value());
- let new_url = make_url(src.Value(), Some(url3.clone()));
+ let new_url = parse_url(src.Value(), Some(url3.clone()));
js_chan2.send(JSTaskNewFile(new_url));
}
None => {