aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-09-09 19:10:49 +0200
committerMartin Fischer <martin@push-f.com>2023-09-09 23:02:47 +0200
commit1d8e6239875c810197a0679a20412726afb8ff66 (patch)
tree3daa917d720235117770040405a78dad548032e9 /src/lib.rs
parent77eb3eefeeab3ba7ab3c6387e5916192b95b482d (diff)
refactor: merge token types with attr to new token module
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 97358d0..2918c80 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -15,13 +15,20 @@ mod naive_parser;
mod tokenizer;
mod utils;
-pub mod attr;
+/// Types for HTML attributes.
+pub mod attr {
+ pub use crate::token::{
+ AttrIntoIter, AttrIter, AttrValueSyntax, Attribute, AttributeMap, AttributeOwned,
+ };
+}
pub mod offset;
pub mod reader;
+pub mod token;
-pub use emitter::{Comment, DefaultEmitter, Doctype, Emitter, EndTag, StartTag, Token};
+pub use emitter::{DefaultEmitter, Emitter};
pub use error::Error;
pub use naive_parser::NaiveParser;
+pub use token::{Comment, Doctype, EndTag, StartTag, Token};
pub use tokenizer::{CdataAction, Event, State, Tokenizer};
#[cfg(feature = "integration-tests")]