UNPKG

@webcomponents/custom-elements

Version:
14 lines (12 loc) 246 B
<!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>