Skip to content

Commit

Permalink
Revert "removed forced uppercasing of tags in jsdom"
Browse files Browse the repository at this point in the history
This reverts commit 3934ea1.
  • Loading branch information
tmpvar committed Jan 23, 2011
1 parent 45cb377 commit 3261f85
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/jsdom/browser/index.js
Expand Up @@ -444,6 +444,19 @@ var browserAugmentation = exports.browserAugmentation = function(dom, options) {
return styles;
});

dom.Element.prototype.__defineGetter__('nodeName', function(val) {
return this._nodeName.toUpperCase();
});

dom.Element.prototype.__defineGetter__('tagName', function(val) {
var t = this._tagName.toUpperCase();
//Document should not return a tagName
if (this.nodeName === '#document') {
t = null;
}
return t;
});

dom.Element.prototype.scrollTop = 0;
dom.Element.prototype.scrollLeft = 0;

Expand Down

0 comments on commit 3261f85

Please sign in to comment.