fperucic / treant-js

Treant.js - javascript library for drawing tree diagrams
MIT License
864 stars 314 forks source link

Data Attributes rendering inside of "text" box #91

Open eitdhc opened 7 years ago

eitdhc commented 7 years ago

If I create a node and set text:{title:"this title",'data-SomeAttribute':"somevalue"} the node renders as <p>this title</p><p>somevalue<p> AND places data-SomeAttribute="somevalue" in the node div tag. Is that intended behavior? I can do a CSS hack "display:none" for the node-data-SomeAttribute class so it doesn't show up in my node, but that seems lame.