The <mycustomelement> tag below is upgraded by the custom-elements module: its behaviour lives in elements/custom.js and is lazy-loaded when the tag appears.

Events received by the element: