summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/custom-elements/xhtml-crash.xhtml
blob: 8b45d2ecc830c088019b4896f1cdf0d29c0d47fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script>
      customElements.define('custom-el-1',
        class extends HTMLElement {
          constructor () {
            super()
            this.attachShadow({ mode: 'open' })
            this.shadowRoot.innerHTML = '&lt;span/>'
          }
        })
    </script>
</head>
<body>
<custom-el-1/>