aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlheadelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/htmlheadelement.rs')
-rw-r--r--src/components/script/dom/htmlheadelement.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/script/dom/htmlheadelement.rs b/src/components/script/dom/htmlheadelement.rs
index d480504aeab..0bd735c125c 100644
--- a/src/components/script/dom/htmlheadelement.rs
+++ b/src/components/script/dom/htmlheadelement.rs
@@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::codegen::HTMLHeadElementBinding;
+use dom::bindings::utils::DOMString;
use dom::document::AbstractDocument;
use dom::element::HTMLHeadElementTypeId;
use dom::htmlelement::HTMLElement;
@@ -13,13 +14,13 @@ pub struct HTMLHeadElement {
}
impl HTMLHeadElement {
- pub fn new_inherited(localName: ~str, document: AbstractDocument) -> HTMLHeadElement {
+ pub fn new_inherited(localName: DOMString, document: AbstractDocument) -> HTMLHeadElement {
HTMLHeadElement {
htmlelement: HTMLElement::new_inherited(HTMLHeadElementTypeId, localName, document)
}
}
- pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode {
+ pub fn new(localName: DOMString, document: AbstractDocument) -> AbstractNode {
let element = HTMLHeadElement::new_inherited(localName, document);
Node::reflect_node(@mut element, document, HTMLHeadElementBinding::Wrap)
}