Skip to content

Commit 7fea07d

Browse files
committed
Removed the lines instead of commenting them out
1 parent 7bfc27e commit 7fea07d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/jsdom/browser/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,6 @@ var parseDocType = function(doc, html) {
762762
dom.Element.prototype.__defineGetter__('textContent', function() {
763763
var stripHTML = /<\S[^><]*>/g;
764764
var out = this.innerHTML;
765-
//Encode all the spaces
766-
//out = out.replace(/&nbsp;/g, ' ');
767765
//Remove all the HTML
768766
out = out.replace(stripHTML, '');
769767
//Now decode the encoded text content
@@ -773,8 +771,6 @@ var parseDocType = function(doc, html) {
773771
dom.Element.prototype.__defineSetter__('textContent', function(txt) {
774772
//Un encode all the entities
775773
txt = HTMLEncode(txt);
776-
//Now replace all the spaces with non-breaking spaces
777-
//txt = txt.replace(/ {2}/g, '&nbsp;&nbsp;');
778774
//Set the content
779775
this.innerHTML = txt;
780776
return txt;

0 commit comments

Comments
 (0)