diff --git a/Meta/import-wpt-test.py b/Meta/import-wpt-test.py index 084e30a7100..56d504402ba 100755 --- a/Meta/import-wpt-test.py +++ b/Meta/import-wpt-test.py @@ -2,8 +2,9 @@ import os import sys + +from html.parser import HTMLParser from pathlib import Path -from bs4 import BeautifulSoup from urllib.parse import urljoin from urllib.request import urlopen from collections import namedtuple @@ -13,18 +14,16 @@ wpt_import_path = 'Tests/LibWeb/Text/input/wpt-import' wpt_expected_path = 'Tests/LibWeb/Text/expected/wpt-import' PathMapping = namedtuple('PathMapping', ['source', 'destination']) +src_values = [] -def get_script_sources(page_source): - # Find all the