From 26e2f7212f65f88f39976eb1c194f9dc94f4c1d2 Mon Sep 17 00:00:00 2001 From: Mike Ralphson Date: Fri, 19 May 2023 08:28:46 +0100 Subject: [PATCH] fixl: hardening against reference error in tables.js --- src/tables.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tables.js b/src/tables.js index e4fd987..fcffad0 100644 --- a/src/tables.js +++ b/src/tables.js @@ -59,6 +59,7 @@ rules.tableSection = { // - and every cell is a TH function isHeadingRow (tr) { var parentNode = tr.parentNode + if (!parentNode) return false return ( parentNode.nodeName === 'THEAD' || (