In-line style and extra semi-colon

I have noticed an odd behavior with in-line style attributes and enyo
I'm not sure when this changed but in enyo 2.2.0 I would make a component like so:
{name: 'myThing', kind: enyo.Control, style: 'width: 50px; height: 50px;'}

Notice the semi-colon at the end of the style attribute. This was always necessary as the framework did not add one for you. It would produce a tag like so:

In enyo, however, if you add that semi-colon at the end of the style attribute you get an extra one on the element for free! Using that exact same declaration you get a tag like so:

This appears to be a bug.


Sign In or Register to comment.