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 c467d3f commit 4f2c4a6Copy full SHA for 4f2c4a6
src/browser/domUtility.js
@@ -34,7 +34,7 @@ function treeToArray(elem) {
34
var nextDescription;
35
for (var height = 0; elem && height < MAX_HEIGHT; height++) {
36
nextDescription = describeElement(elem);
37
- if (nextDescription.tagName === 'html') {
+ if (!nextDescription || nextDescription.tagName === 'html') {
38
break;
39
}
40
out.unshift(nextDescription);
0 commit comments