diff --git a/src/js/contentscript.js b/src/js/contentscript.js index 4e158cb0c..3ee6dc1a3 100644 --- a/src/js/contentscript.js +++ b/src/js/contentscript.js @@ -1086,7 +1086,7 @@ vAPI.domCollapser = (function() { if ( node.localName === 'iframe' ) { addIFrame(node); } - if ( node.children.length !== 0 ) { + if ( node.children && node.children.length !== 0 ) { var iframes = node.getElementsByTagName('iframe'); if ( iframes.length !== 0 ) { addIFrames(iframes);