Skip to content

Commit 2e7e1b1

Browse files
committed
Offset: Fix .offset() to correctly work with ShadowDOM
Test fix: insert temporary node into #qunit-fixture, instead of document.body
1 parent d0df2c6 commit 2e7e1b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/offset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ test("hidden (display: none) element", function() {
7272
expect(1);
7373

7474
var result,
75-
node = jQuery("<div style='display: none' />").appendTo(document.body);
75+
node = jQuery("<div style='display: none' />").appendTo("#qunit-fixture");
7676

7777
try {
7878
result = node.offset();

0 commit comments

Comments
 (0)