Skip to content

Commit

Permalink
Merge pull request tautologistics#21 from lahmatiy/master
Browse files Browse the repository at this point in the history
fix of htmlparser.DomUtils.getOuterHTML for directives
  • Loading branch information
fb55 committed Jul 18, 2012
2 parents 18d3f37 + 69c9f0f commit f8e6aad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/DomUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ DomUtils.getOuterHTML = function(elem){

if(type === ElementType.Text) return elem.data;
if(type === ElementType.Comment) return "<!--" + elem.data + "-->";
if(type === ElementType.Directive) return "<" + elem.data + ">";

var ret = "<" + name;
if(elem.hasOwnProperty("attribs")){
Expand Down

0 comments on commit f8e6aad

Please sign in to comment.