Use DOMString instead of ~str in a few places.

This commit is contained in:
Ms2ger 2014-02-16 10:22:47 +01:00
parent 68f534c45a
commit ecc07e3b49
4 changed files with 18 additions and 16 deletions

View file

@ -16,9 +16,9 @@ pub struct DocumentType {
}
impl DocumentType {
pub fn new_inherited(name: ~str,
public_id: Option<~str>,
system_id: Option<~str>,
pub fn new_inherited(name: DOMString,
public_id: Option<DOMString>,
system_id: Option<DOMString>,
document: AbstractDocument)
-> DocumentType {
DocumentType {
@ -29,9 +29,9 @@ impl DocumentType {
}
}
pub fn new(name: ~str,
public_id: Option<~str>,
system_id: Option<~str>,
pub fn new(name: DOMString,
public_id: Option<DOMString>,
system_id: Option<DOMString>,
document: AbstractDocument)
-> AbstractNode {
let documenttype = DocumentType::new_inherited(name,

View file

@ -31,7 +31,7 @@ use std::unstable::raw::Box;
pub struct Element {
node: Node,
tag_name: ~str, // TODO: This should be an atom, not a ~str.
tag_name: DOMString, // TODO: This should be an atom, not a DOMString.
namespace: Namespace,
attrs: ~[@mut Attr],
style_attribute: Option<style::PropertyDeclarationBlock>,