diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-09 19:10:49 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-09 23:02:47 +0200 |
commit | 1d8e6239875c810197a0679a20412726afb8ff66 (patch) | |
tree | 3daa917d720235117770040405a78dad548032e9 /src/lib.rs | |
parent | 77eb3eefeeab3ba7ab3c6387e5916192b95b482d (diff) |
refactor: merge token types with attr to new token module
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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")] |