Permalink
Browse files

Issue 5360: domplate issue with BR() in it

  • Loading branch information...
janodvarko committed Apr 3, 2012
1 parent 7a44bcd commit 61090ccc2f35f559740b511f91eb3040682fbeee
Showing with 4 additions and 1 deletion.
  1. +4 −1 extension/content/firebug/lib/domplate.js
@@ -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});

0 comments on commit 61090cc

Please sign in to comment.