Skip to content
Browse files

Land: Fix: when serializing single tags use ' />' instead of '/>'

  • Loading branch information...
2 parents 18e8c38 + 77ff1e3 commit 57afd253017ed804d6356ef08075d37e3f1cfcaf @tmpvar committed Apr 12, 2012
Showing with 1 addition and 8 deletions.
  1. +1 −8 lib/jsdom/browser/domtohtml.js
View
9 lib/jsdom/browser/domtohtml.js
@@ -1,7 +1,3 @@
-//Make configurable from docType??
-//Set in option
-var isXHTML = false;
-
//List from node-htmlparser
var singleTags = {
area: 1,
@@ -59,10 +55,7 @@ exports.stringifyElement = function stringifyElement(element) {
ret.start += attributes.join(" ");
if (singleTags[tagName]) {
- if (isXHTML) {
- ret.start += "/";
- }
- ret.start += ">";
+ ret.start += " />";
ret.end = '';
} else {
ret.start += ">";

0 comments on commit 57afd25

Please sign in to comment.
Something went wrong with that request. Please try again.