4 ms·
How could this be done better though? Unless using a DSL it seems to me that this problem is quite complex to begin with.
by yoz-y 10y ago
How could this be done better though? Unless using a DSL it seems to me that this problem is quite complex to begin with.
- kagamine 10y agoIt is, but it also illustrates the problem of drawing a simple diagram for the web. It was in response to user mattmanser's illustration of diabolical nested tables and user einar's nested divs. HTML is problematic for anything complex. I suppose the best way to represent the data is to not use HTML at all, but instead use an image (SVG? for scalabilty) or a big PDF that opens a new tab? I googled for a solution that I could add to and maintain myself and this was what The Internet threw up as the best solution, but it is far from good.
- yoz-y 10y agoI would say that best for drawing diagrams in html pages would be to use a DSL like plantuml or dot and some javascript library to transform it into a SVG image.
- metamet 10y ago> How could this be done better though? <ul> <li> <a href="#">Parent</a> <ul></ul> </li> </ul>