Skip to content

Commit 33b9341

Browse files
committed
added elem.getClientRects
1 parent 3cee6ee commit 33b9341

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/jsdom/living/nodes/HTMLElement-impl.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ class HTMLElementImpl extends ElementImpl {
4646
width: 0
4747
};
4848
}
49+
getClientRects() {
50+
return [{
51+
bottom: 0,
52+
left: 0,
53+
right: 0,
54+
top: 0
55+
}];
56+
}
4957
focus() {
5058
this._ownerDocument.activeElement = this;
5159
}

0 commit comments

Comments
 (0)