summaryrefslogtreecommitdiff
path: root/tests/wpt/runner/runner.ts
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2024-06-03 05:47:47 +0900
committerGitHub <noreply@github.com>2024-06-02 22:47:47 +0200
commitf8fdaa082b16cfa63afa59a7d9dff87ddf9f7138 (patch)
tree1da6c80aed65933962cd9bfb76e73c62f35792de /tests/wpt/runner/runner.ts
parent38ff9faff639385c10ccb6412470e1355c73327c (diff)
chore: update wpt suite (#24070)
Diffstat (limited to 'tests/wpt/runner/runner.ts')
-rw-r--r--tests/wpt/runner/runner.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/wpt/runner/runner.ts b/tests/wpt/runner/runner.ts
index c7234da63..b404f2ad8 100644
--- a/tests/wpt/runner/runner.ts
+++ b/tests/wpt/runner/runner.ts
@@ -196,7 +196,7 @@ async function generateBundle(location: URL): Promise<string> {
const doc = new DOMParser().parseFromString(body, "text/html");
assert(doc, "document should have been parsed");
const scripts = doc.getElementsByTagName("script");
- const title = doc.getElementsByTagName("title")[0]?.childNodes[0].nodeValue;
+ const title = doc.getElementsByTagName("title")[0]?.childNodes[0]?.nodeValue;
const scriptContents = [];
let inlineScriptCount = 0;
if (title) {