Skip to content

Commit

Permalink
only respect self-closing tags in XML mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Aug 21, 2013
1 parent effc3a9 commit e4fb613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Parser.js
Expand Up @@ -179,7 +179,7 @@ Parser.prototype.onselfclosingtag = function(){

//self-closing tags will be on the top of the stack
//(cheaper check than in onclosetag)
if(this._stack[this._stack.length-1] === name){
if(!this._options.xmlMode && this._stack[this._stack.length-1] === name){
if(this._cbs.onclosetag){
this._cbs.onclosetag(name);
}
Expand Down

0 comments on commit e4fb613

Please sign in to comment.