mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Fix custom element registry define test
The test relies on DOM elements with ids beind added as properties of the window. Servo does not do this, and this is not a best practice.
This commit is contained in:
parent
e21e64a33c
commit
1800da779c
2 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
// https://html.spec.whatwg.org/multipage/scripting.html#element-definition
|
||||
|
||||
// Use window from iframe to isolate the test.
|
||||
const iframe = document.getElementById("iframe");
|
||||
const testWindow = iframe.contentDocument.defaultView;
|
||||
const customElements = testWindow.customElements;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue