UNPKG
@webcomponents/custom-elements
Version:
latest (1.6.0)
rc (1.0.0-rc.5)
1.6.0
1.5.1
1.5.0
1.4.3
1.4.2
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.9
1.0.8
1.0.7
1.0.6
1.0.4
1.0.3
1.0.2
1.0.0
1.0.0-rc.5
1.0.0-rc.3
1.0.0-alpha.3
1.0.0-alpha.2
1.0.0-alpha.1
HTML Custom Elements Polyfill
webcomponents.org/polyfills
webcomponents/custom-elements
@webcomponents/custom-elements
/
tests
/
chromium
/
custom-elements
/
imports
/
resources
/
upgrade.html
14 lines
(12 loc)
•
246 B
HTML
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE
html
>
<
x-x
id
=
"aa"
>
</
x-x
>
<
y-y
id
=
"bb"
>
</
y-y
>
<
script
>
'use strict'
; customElements.
define
(
'x-x'
,
class
extends
HTMLElement
{
constructor
(
) {
super
(); reactions.
push
({
type
:
'constructor'
,
element
:
this
}); } });
</
script
>