mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-22 05:54:46 +00:00
Reset nofollow in html5gum start tag (#584)
This commit is contained in:
parent
f2b8e878b9
commit
6ebc9fed4b
1 changed files with 2 additions and 4 deletions
|
|
@ -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) {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue