summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/resources/bailout-order-custom-element-with-domain-frame.sub.html
blob: 4de97e8ed1bb99fd6eb2efa6dbe43bb1eb05edea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<p>Text</p>
<script>
document.domain = "{{host}}";

class CustomElement extends HTMLElement {
  constructor() {
    super();
    parent.onCustomElementReady();
  }
}
customElements.define("custom-element", CustomElement);
</script>
<custom-element></custom-element>