Implement document.URL & document.documentURI

Specs:
http://dom.spec.whatwg.org/#dom-document-url
http://dom.spec.whatwg.org/#dom-document-documenturi

This is a sub-task for #1428.
This commit is contained in:
Bruno de Oliveira Abinader 2014-01-29 14:24:49 -04:00
parent 0777f211df
commit 43416ef91f
7 changed files with 64 additions and 14 deletions

View file

@ -690,7 +690,7 @@ impl ScriptTask {
// Parse HTML.
//
// Note: We can parse the next document in parallel with any previous documents.
let document = HTMLDocument::new(window);
let document = HTMLDocument::new(window, Some(url.clone()));
let html_parsing_result = hubbub_html_parser::parse_html(cx.ptr,
document,
url.clone(),