<div class="h-entry">
<p class="p-name">microformats.org at 7</p>
<video class="u-photo" poster="posterimage.jpg">
Sorry, your browser doesn't support embedded videos.
</video>
</div>
{
"items": [{
"type": ["h-entry"],
"properties": {
"name": ["microformats.org at 7"],
"photo": ["posterimage.jpg"]
}
}],
"rels": {},
"rel-urls": {}
}
videoelement'sposterattribute should be used when parsing for u-, per http://microformats.org/wiki/microformats2-parsing##else+if+videoIsolated example from microformats test suite:
Expected result:
Test: https://github.com/microformats/tests/blob/master/tests/microformats-v2/h-entry/u-property.html
Expected: https://github.com/microformats/tests/blob/master/tests/microformats-v2/h-entry/u-property.json