Freak613 / domc

DOM compiler
MIT License
215 stars 11 forks source link

Styles are applicated to parent #10

Open cstffx opened 4 years ago

cstffx commented 4 years ago

I have a template like this:

<div>
     <div style="{{nameStyle}}" >{{name}}</div>
     <div>{{status}}</div>
</div> 

When this is rendered I get:

<div style="color:red"> 
  <div>Some one</div>
  <div>Offline</div>
</div>

How can I put the inline style inside the first child?