summaryrefslogtreecommitdiff
path: root/tests/wpt/runner/runner.ts
diff options
context:
space:
mode:
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) {