aboutsummaryrefslogtreecommitdiff
path: root/src/emitter.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-13 09:10:40 +0200
committerMartin Fischer <martin@push-f.com>2023-08-19 06:41:55 +0200
commit1733b9303149251d93ab7a04d5981e06d0aff310 (patch)
treee828dc964b0cc2cd5b889df6e774680b5ef69faf /src/emitter.rs
parent822249c2eec94406e2f0b1ef70dd71273ad8d7dd (diff)
fix(docs): Error::EndTagWithAttributes should be emitted by emit_current_tag
Diffstat (limited to 'src/emitter.rs')
-rw-r--r--src/emitter.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emitter.rs b/src/emitter.rs
index c09fe1c..5a6a72e 100644
--- a/src/emitter.rs
+++ b/src/emitter.rs
@@ -65,6 +65,9 @@ pub trait Emitter<R> {
///
/// If a start tag is emitted, update the _last start tag_.
///
+ /// If an end tag is emitted with attributes, an [`Error::EndTagWithAttributes`]
+ /// error should be emitted.
+ ///
/// If the current token is not a start/end tag, this method may panic.
fn emit_current_tag(&mut self);
@@ -120,9 +123,6 @@ pub trait Emitter<R> {
/// name already exists, WHATWG says the new one should be ignored and a
/// [`crate::Error::DuplicateAttribute`] error should be emitted.
///
- /// If the current token is an end tag token, a [`crate::Error::EndTagWithAttributes`] error should be
- /// emitted.
- ///
/// If the current token is no tag at all, this method may panic.
fn init_attribute_name(&mut self, reader: &R);