We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8544f6a commit cd92eabCopy full SHA for cd92eab
system/Debug/Toolbar/Views/toolbar.js
@@ -337,6 +337,11 @@ var ciDebugBar = {
337
const OUTER_ELEMENTS = ["HTML", "BODY", "HEAD"];
338
339
var getValidElementInner = function (node, reverse) {
340
+ // handle null node
341
+ if (node === null) {
342
+ return null;
343
+ }
344
+
345
// handle invalid tags
346
if (OUTER_ELEMENTS.indexOf(node.nodeName) !== -1) {
347
for (var i = 0; i < document.body.children.length; ++i) {
0 commit comments