From 1733b9303149251d93ab7a04d5981e06d0aff310 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 13 Aug 2023 09:10:40 +0200 Subject: fix(docs): Error::EndTagWithAttributes should be emitted by emit_current_tag --- src/emitter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 { /// /// 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 { /// 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); -- cgit v1.2.3