Skip to content

Commit a126b18

Browse files
author
Kris Reeves
committed
Derp.
1 parent a1777a9 commit a126b18

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/Parser.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,15 +349,12 @@ Parser.prototype._processOpenTag = function(data){
349349
if(this._options.xmlMode){ /*do nothing*/ }
350350
else if(name === "script") type = ElementType.Script;
351351
else if(name === "style") type = ElementType.Style;
352-
353352
if (name in openImpliesClose) {
354353
var el;
355-
while ((el = this._stack[this._stack.length]) in openImpliesClose[name]) {
356-
this._stack.pop();
354+
while ((el = this._stack[this._stack.length-1]) in openImpliesClose[name]) {
357355
this._processCloseTag(el);
358356
}
359357
}
360-
361358
if(this._cbs.onopentagname) this._cbs.onopentagname(name);
362359
if(this._cbs.onopentag) this._cbs.onopentag(name, attributes);
363360
if(this._cbs.onattribute){

0 commit comments

Comments
 (0)