diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-02-13 19:32:59 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-02-13 19:32:59 +0100 |
commit | 0f5c9a35b901c65ed4d6bf3e4130d72aabaaadda (patch) | |
tree | 3f592ac2a26e8900345a8dcb60428bd579fe88e8 /src/components/script/dom/htmloptionelement.rs | |
parent | a0a61fe976c7d4e84cd33b3f121385acc76f3fa2 (diff) | |
download | servo-0f5c9a35b901c65ed4d6bf3e4130d72aabaaadda.tar.gz servo-0f5c9a35b901c65ed4d6bf3e4130d72aabaaadda.zip |
Use DOMString more consistently.
Diffstat (limited to 'src/components/script/dom/htmloptionelement.rs')
-rw-r--r-- | src/components/script/dom/htmloptionelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/htmloptionelement.rs b/src/components/script/dom/htmloptionelement.rs index 6beb2ba3c18..35af2ad0aff 100644 --- a/src/components/script/dom/htmloptionelement.rs +++ b/src/components/script/dom/htmloptionelement.rs @@ -14,13 +14,13 @@ pub struct HTMLOptionElement { } impl HTMLOptionElement { - pub fn new_inherited(localName: ~str, document: AbstractDocument) -> HTMLOptionElement { + pub fn new_inherited(localName: DOMString, document: AbstractDocument) -> HTMLOptionElement { HTMLOptionElement { htmlelement: HTMLElement::new_inherited(HTMLOptionElementTypeId, localName, document) } } - pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode { + pub fn new(localName: DOMString, document: AbstractDocument) -> AbstractNode { let element = HTMLOptionElement::new_inherited(localName, document); Node::reflect_node(@mut element, document, HTMLOptionElementBinding::Wrap) } |