Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge commit '3288486d3dd447237d3c'

  • Loading branch information...
commit abaa9e37adbd18105290ca50026bb1a4d2cd7b11 2 parents c25acca + 3288486
@tmpvar authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/jsdom/browser/index.js
View
8 lib/jsdom/browser/index.js
@@ -389,6 +389,14 @@ dom.Element.prototype.__defineSetter__('innerHTML', function(html) {
});
+ dom.Element.prototype.__defineGetter__('rows', function() {
+ if (this.tagName.toUpperCase() == 'TBODY') {
+ return this.getElementsByTagName('tr');
+ } else {
+ //Throw Error
+ }
+ });
+
dom.Element.prototype.__defineGetter__('options', function() {
if (this.tagName.toUpperCase() == 'SELECT') {
return this.getElementsByTagName('option');
Please sign in to comment.
Something went wrong with that request. Please try again.