Fixed a bug in custom element where attributes and children weren't generated.