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

@ -38,7 +38,7 @@ impl DOMParser {
-> Fallible<AbstractDocument> {
match ty {
Text_html => {
Ok(HTMLDocument::new(self.owner))
Ok(HTMLDocument::new(self.owner, None))
}
Text_xml => {
Document::Constructor(self.owner)