Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Nov 5, 2024
1 parent d7b67e3 commit dc03748
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions scraper/src/mindtouch2zim/html_rewriting.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ def rewrite_href_src_attributes(
return (attr_name, new_attr_value)


@html_rules.drop_attribute()
def drop_sizes_and_srcset_attribute(tag: str, attr_name: str):
"""Drop srcset and sizes attributes in <img> tags"""
return tag == "img" and attr_name in ("srcset", "sizes")


@html_rules.rewrite_tag()
def refuse_unsupported_tags(tag: str):
"""Stop scraper if unsupported tag is encountered"""
Expand Down

0 comments on commit dc03748

Please sign in to comment.