Skip to content

Commit

Permalink
Issue 5360: domplate issue with BR() in it
Browse files Browse the repository at this point in the history
  • Loading branch information
janodvarko committed Apr 12, 2012
1 parent 7a44bcd commit 61090cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extension/content/firebug/lib/domplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,10 @@ DomplateTag.prototype =
topBlock.push(',">"');

this.generateChildMarkup(topBlock, topOuts, blocks, info);
topBlock.push(',"</', this.tagName, '>"');

// <br> element doesn't use end tag.
if (this.tagName != "br")
topBlock.push(',"</', this.tagName, '>"');

if (FBTrace.DBG_DOMPLATE)
FBTrace.sysout("DomplateTag.generateMarkup "+this.tagName+": "+topBlock.slice( - topBlock.length + beginBlock).join("").replace("\n"," "), {listeners: this.listeners, props: this.props, attrs: this.attrs});
Expand Down

0 comments on commit 61090cc

Please sign in to comment.