mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
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:
parent
0777f211df
commit
43416ef91f
7 changed files with 64 additions and 14 deletions
|
@ -63,7 +63,7 @@ impl DOMImplementation {
|
|||
// http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
|
||||
pub fn CreateHTMLDocument(&self, title: Option<DOMString>) -> AbstractDocument {
|
||||
// Step 1-2.
|
||||
let abstract_doc = HTMLDocument::new(self.owner);
|
||||
let abstract_doc = HTMLDocument::new(self.owner, None);
|
||||
assert!(abstract_doc.document().doctype == HTML);
|
||||
|
||||
let abstract_node = AbstractNode::from_document(abstract_doc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue