Open elf-pavlik opened 9 years ago
@aaronpk if microformats2 parser drops p-* u-* prefixes, how it will know where to 'put it back' when serializing to HTML?
elf, as a straw proposal:
<a class="u-*" href="URLvalue">...</a>
, unless it has an image file extension, then use <img src>
, unless it has audio file extension, use <audio src>
, unless it has video file extension, use <video src>
<time class="dt-*" datetime="datetimevalue">human readable export of datetimevalue</time>
<div class="e-*">unescaped HTML</div>
<div class="p-*">string value</div>
Nowadays non standard ways of rendering JSON into HTML gained widespread use. It also allows clients and servers to share templates and render data in consistent way e.g https://mustache.github.io/
TODO
NOTES
JSON-LD -> HTML+RDFa