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 a1777a9 commit a126b18Copy full SHA for a126b18
lib/Parser.js
@@ -349,15 +349,12 @@ Parser.prototype._processOpenTag = function(data){
349
if(this._options.xmlMode){ /*do nothing*/ }
350
else if(name === "script") type = ElementType.Script;
351
else if(name === "style") type = ElementType.Style;
352
-
353
if (name in openImpliesClose) {
354
var el;
355
- while ((el = this._stack[this._stack.length]) in openImpliesClose[name]) {
356
- this._stack.pop();
+ while ((el = this._stack[this._stack.length-1]) in openImpliesClose[name]) {
357
this._processCloseTag(el);
358
}
359
360
361
if(this._cbs.onopentagname) this._cbs.onopentagname(name);
362
if(this._cbs.onopentag) this._cbs.onopentag(name, attributes);
363
if(this._cbs.onattribute){
0 commit comments