👷♂️ Patch fixes
- Elements should only be upgraded to a custom element (web component) when the element is in the document - By @capricorn86 in task #1945
- This will also improve the memory footprint as the listeners prevented nodes from being garbage collected until the document was closed