import json import re import shutil import subprocess from html.parser import HTMLParser import pytest VOID_TAGS = {"area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "source", "wbr"} class _Collector(HTMLParser): """Collects every start tag as (tag, attrs-dict), with the ids of its ancestors, plus