diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-05 09:38:26 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-09 18:57:05 +0200 |
commit | a0a4ea69f3a4141b94c77a755924dd6dccd71ba2 (patch) | |
tree | 3fde8375db0542295d89386549926505c03fa5c9 | |
parent | bc24dce4fca8a4ca91122c6bf4d2f26fea05eda9 (diff) |
docs: stop referencing Emitter from token types
-rw-r--r-- | src/emitter.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/emitter.rs b/src/emitter.rs index ed8e978..f27c778 100644 --- a/src/emitter.rs +++ b/src/emitter.rs @@ -577,8 +577,7 @@ pub struct StartTag<O> { /// A mapping for any HTML attributes this start tag may have. /// - /// Duplicate attributes are ignored after the first one as per WHATWG spec. Implement your own - /// [`Emitter`] to tweak this behavior. + /// Duplicate attributes are ignored after the first one as per WHATWG spec. pub attributes: crate::attr::AttributeMap<O>, /// The source code span of the tag. @@ -674,8 +673,7 @@ impl<O: Offset> Doctype<O> { } } -/// The token type used by default. You can define your own token type by implementing the -/// [`Emitter`] trait. +/// A type for the tokens emitted by a WHATWG-compliant HTML tokenizer. #[derive(Debug, Eq, PartialEq)] pub enum Token<O> { /// An HTML start tag. |