aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);