Reset nofollow in html5gum start tag (#584)

This commit is contained in:
Matthias 2022-04-06 00:49:00 +02:00 committed by GitHub
parent f2b8e878b9
commit 6ebc9fed4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,13 +172,12 @@ impl Emitter for &mut LinkExtractor {
fn init_start_tag(&mut self) {
self.flush_current_characters();
self.current_element_name.clear();
self.current_element_nofollow = false;
self.current_element_is_closing = false;
}
fn init_end_tag(&mut self) {
self.flush_current_characters();
self.current_element_name.clear();
self.current_element_is_closing = true;
self.init_start_tag();
}
fn init_comment(&mut self) {
@ -187,7 +186,6 @@ impl Emitter for &mut LinkExtractor {
fn emit_current_tag(&mut self) {
self.flush_old_attribute();
self.current_element_nofollow = false;
}
fn emit_current_doctype(&mut self) {}