The tagName is not set on a part element when adding attributes to a DOM element
<my-static-element>...</my-static-element> :heavy_check_mark:
<my-static-element class="my-class">...</my-static-element> :x:
<my-static-element >...</my-static-element> :x: (there is an extra whitespace)
The
tagName
is not set on apart
element when adding attributes to a DOM element<my-static-element>...</my-static-element>
:heavy_check_mark:<my-static-element class="my-class">...</my-static-element>
:x:<my-static-element >...</my-static-element>
:x: (there is an extra whitespace)I created a fork with a naive fix for these cases by reversing the tagName resolving.
I have not tried to fix the case when you have a dynamic property, but I've added a failing test for it