Generate bindings for HTMLHeadElement.

This commit is contained in:
Josh Matthews 2013-07-31 18:51:12 -04:00
parent fd4efad70c
commit 9a545b13c3
13 changed files with 132 additions and 73 deletions

View file

@ -6,8 +6,9 @@ use dom::bindings::codegen::DOMParserBinding;
use dom::bindings::codegen::DOMParserBinding::SupportedTypeValues::{Text_html, Text_xml};
use dom::bindings::utils::{DOMString, ErrorResult, WrapperCache, CacheableWrapper};
use dom::document::{AbstractDocument, Document, XML};
use dom::element::{Element, HTMLHtmlElement, HTMLHtmlElementTypeId};
use dom::element::{HTMLHtmlElement, HTMLHtmlElementTypeId};
use dom::htmldocument::HTMLDocument;
use dom::htmlelement::HTMLElement;
use dom::node::Node;
use dom::window::Window;
@ -42,7 +43,7 @@ impl DOMParser {
-> AbstractDocument {
unsafe {
let root = @HTMLHtmlElement {
parent: Element::new(HTMLHtmlElementTypeId, ~"html")
parent: HTMLElement::new(HTMLHtmlElementTypeId, ~"html")
};
let root = Node::as_abstract_node((*self.owner.page).js_info.get_ref().js_compartment.cx.ptr, root);