4 ms·
The last example of my previous comment is a little ugly; in "real" XML we would write: <comment-box> <source name="hackernews" items="12"/> <s
by bambax 10y ago
The last example of my previous comment is a little ugly; in "real" XML we would write:
<comment-box>
<source name="hackernews" items="12"/>
<source name="reddit" items="24 27"/>
</comment-box>
which would be very readable; but since we don't have self-closing tags and we need to use hyphens in tag names, it's probably defensible to try to limit the number of tags and put as much information as possible inside attributes...
- franciscop 10y agoTotally agree about your conclusion (: I think that's the same as with the modern <picture> and <video>. I recently tried something similar but in "traditional" html structure, but also found it a bit too verbose for my taste: https://medium.com/@fpresencia/leveraging-modern-apis-a13fa6d28f1a https://medium.com/@fpresencia/leveraging-modern-apis-a13fa6...