From 42eb9daf65ead8e0b8da8e6accc801659e564f18 Mon Sep 17 00:00:00 2001 From: Jan Lukas Gernert Date: Sat, 22 Jul 2023 19:57:38 +0200 Subject: [PATCH] remove lazy loading attributes --- article_scraper/src/full_text_parser/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/article_scraper/src/full_text_parser/mod.rs b/article_scraper/src/full_text_parser/mod.rs index 10ea343..a21ec64 100644 --- a/article_scraper/src/full_text_parser/mod.rs +++ b/article_scraper/src/full_text_parser/mod.rs @@ -583,6 +583,9 @@ impl FullTextParser { continue; } + _ = node.remove_attribute("decoding"); + _ = node.remove_attribute("loading"); + for (name, val) in node.get_attributes() { if name == "src" || name == "srcset" || name == "alt" { continue;