mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -554144,7 +554144,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"custom-elements/custom-element-registry/define.html": [
|
||||
"724060b276a1f3254fd226e329631005ec5a5e87",
|
||||
"4f3d4da1aae8efab035a4b951147904d71e7de3b",
|
||||
"testharness"
|
||||
],
|
||||
"custom-elements/disconnected-callbacks.html": [
|
||||
|
|
|
@ -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