summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorcatch <catch@35733.no-reply.drupal.org>2024-02-16 15:23:20 +0000
committercatch <catch@35733.no-reply.drupal.org>2024-02-16 15:23:20 +0000
commit2d17900f3689adab940520f1a662a6c9c033ed56 (patch)
tree05dc36d6a600f341e9f14c8e402d3b53dca5d412
parent46ed71cfc2d4a6a10ece28fdf3c37d1825df7c58 (diff)
downloaddrupal-2d17900f3689adab940520f1a662a6c9c033ed56.tar.gz
drupal-2d17900f3689adab940520f1a662a6c9c033ed56.zip
Issue #3416141 by gorkagr, Jaypan, Wim Leers: big_pipe.js' checkMutation() does not check if node exists before using it
-rw-r--r--core/modules/big_pipe/js/big_pipe.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/big_pipe/js/big_pipe.js b/core/modules/big_pipe/js/big_pipe.js
index 5d592e72f16..64a1bb95182 100644
--- a/core/modules/big_pipe/js/big_pipe.js
+++ b/core/modules/big_pipe/js/big_pipe.js
@@ -89,7 +89,8 @@
*/
function checkMutation(node) {
return Boolean(
- node.nodeType === Node.ELEMENT_NODE &&
+ node &&
+ node.nodeType === Node.ELEMENT_NODE &&
node.nodeName === 'SCRIPT' &&
node.dataset &&
node.dataset.bigPipeReplacementForPlaceholderWithId &&