aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer/interface.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-04-08 10:25:09 +0200
committerMartin Fischer <martin@push-f.com>2021-04-08 15:40:48 +0200
commit8bb20dcdeec57b2109b05351663ec1dba9c65f84 (patch)
tree3ddf7196d2fe66d92e4819c362e248cb96be3c0b /src/tokenizer/interface.rs
parentfc9d3132f390b038544e45048b4fe345a3d47793 (diff)
drop markup5ever dependency
Diffstat (limited to 'src/tokenizer/interface.rs')
-rw-r--r--src/tokenizer/interface.rs5
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>,
}