Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit 4d3dd37

Browse files
committed
Force render before focus.
1 parent 484f2dd commit 4d3dd37

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/ShadowDOM/wrappers/HTMLElement.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@
333333
}
334334

335335
[
336+
'focus',
336337
'getBoundingClientRect',
337338
'getClientRects',
338339
'scrollIntoView'

tests/ShadowDOM/html/activeElement.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@
9191
r_1_1_l = r_1_1.querySelector('[shadow-template-id=x-shadow-host-root-1-1-light]');
9292

9393
document.body.appendChild(r);
94-
95-
// Nodes need to be in the document to be focusable.
96-
ShadowDOMPolyfill.renderAllPending();
9794
});
9895

9996
teardown(function() {

0 commit comments

Comments
 (0)