diff options
Diffstat (limited to 'src/tokenizer/interface.rs')
-rw-r--r-- | src/tokenizer/interface.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tokenizer/interface.rs b/src/tokenizer/interface.rs index ebb8569..c331a0e 100644 --- a/src/tokenizer/interface.rs +++ b/src/tokenizer/interface.rs @@ -9,7 +9,6 @@ use tendril::StrTendril; use crate::tokenizer::states; -use markup5ever::{LocalName, QualName}; use std::borrow::Cow; pub use self::TagKind::{EndTag, StartTag}; @@ -52,7 +51,7 @@ pub enum TagKind { #[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Debug)] pub struct Attribute { /// The name of the attribute (e.g. the `class` in `<div class="test">`) - pub name: QualName, + pub name: StrTendril, /// The value of the attribute (e.g. the `"test"` in `<div class="test">`) pub value: StrTendril, } @@ -61,7 +60,7 @@ pub struct Attribute { #[derive(PartialEq, Eq, Clone, Debug)] pub struct Tag { pub kind: TagKind, - pub name: LocalName, + pub name: StrTendril, pub self_closing: bool, pub attrs: Vec<Attribute>, } |