diff --git a/lib/widgets/element.js b/lib/widgets/element.js index 29a783c..d044ecc 100644 --- a/lib/widgets/element.js +++ b/lib/widgets/element.js @@ -530,7 +530,8 @@ Element.prototype._parseAttr = function(lines) { , j , c; - if (lines[0].attr === attr) { + if (Array.isArray(lines.attr) && lines.attr.length > 0 + && lines.attr[0] === attr) { return; }