aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlparagraphelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/htmlparagraphelement.rs')
-rw-r--r--src/components/script/dom/htmlparagraphelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/htmlparagraphelement.rs b/src/components/script/dom/htmlparagraphelement.rs
index 3fdc422cced..e48d69cba52 100644
--- a/src/components/script/dom/htmlparagraphelement.rs
+++ b/src/components/script/dom/htmlparagraphelement.rs
@@ -14,13 +14,13 @@ pub struct HTMLParagraphElement {
}
impl HTMLParagraphElement {
- pub fn new_inherited(localName: ~str, document: AbstractDocument) -> HTMLParagraphElement {
+ pub fn new_inherited(localName: DOMString, document: AbstractDocument) -> HTMLParagraphElement {
HTMLParagraphElement {
htmlelement: HTMLElement::new_inherited(HTMLParagraphElementTypeId, localName, document)
}
}
- pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode {
+ pub fn new(localName: DOMString, document: AbstractDocument) -> AbstractNode {
let element = HTMLParagraphElement::new_inherited(localName, document);
Node::reflect_node(@mut element, document, HTMLParagraphElementBinding::Wrap)
}