summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bidi/1556414-1.html
blob: 474b112388cf5cf23cd7b2c3752073adc81adcb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
<head>
    <meta charset="utf-8"/>
</head>
<body>
    <custom-span text="בדיקה"></custom-span>
</body>
<script>
	class CustomSpan extends HTMLElement {
		constructor() {
			super();

			var shadow = this.attachShadow({ mode: 'open' });

			const span = document.createElement('span');
			span.innerText = this.getAttribute('text');

			shadow.appendChild(span);
		}
	}

    window.customElements.define('custom-span', CustomSpan);
</script>
</html>