diff --git a/lib/jsdom/browser/index.js b/lib/jsdom/browser/index.js index 1d52945739..1352ce1879 100644 --- a/lib/jsdom/browser/index.js +++ b/lib/jsdom/browser/index.js @@ -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;