You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
Thanks for reporting this, I can see that this breaks virtual-dom expectations. The solution would be to do a rudimentary CSS parse, convert property names to camelCase and output an object, I guess. This also makes me wonder about the class attribute (should it be converted to className?).
Well they maybe leaved in as is,
so style="background-color: red" -> `"style": {"background-color": "red"}
anyway your module is doing some kind of JSON (all the properties name have quotes), but it would be nice to have an option that it would create not json but js object like `style: {backgroundColor: "red"}
as well it would be useful to have ability to have instead h("div.someclass", ...) -> div("someclass", ...)
Activity
[-]Does not parse style tag[/-][+]Does not parse style attribute[/+]unframework commentedon Apr 10, 2016
Thanks for reporting this, I can see that this breaks virtual-dom expectations. The solution would be to do a rudimentary CSS parse, convert property names to camelCase and output an object, I guess. This also makes me wonder about the
classattribute (should it be converted toclassName?).wclr commentedon Apr 10, 2016
Well they maybe leaved in as is,
so
style="background-color: red"-> `"style": {"background-color": "red"}anyway your module is doing some kind of JSON (all the properties name have quotes), but it would be nice to have an option that it would create not
jsonbutjsobject like `style: {backgroundColor: "red"}as well it would be useful to have ability to have instead
h("div.someclass", ...)->div("someclass", ...)wclr commentedon Apr 10, 2016
btw it seem that better solution will be to place all the attributes to
attributesthis will solve other issues and this too.