Skip to content

Instantly share code, notes, and snippets.

@mko
Last active August 29, 2015 14:10
Show Gist options
  • Save mko/2c481e1bb5d2deb9d2f8 to your computer and use it in GitHub Desktop.
Save mko/2c481e1bb5d2deb9d2f8 to your computer and use it in GitHub Desktop.
microformats2 person-tagging use case (as parsed by `php-mf2` as of 11/24/2014)
{
"items": [
{
"type": ["h-entry"],
"properties": {
"category": [
{
"type": ["h-card"],
"properties": {
"name": ["Person Bee"],
"url": ["http://personB.example.com"]
},
"shape": "rect",
"coords": "100,100,120,120",
"value": "Person Bee"
}
],
"name": ["Person Bee"],
"url": ["http://personB.example.com"]
}
}
]
}
{
"items": [
{
"type": ["h-entry"],
"properties": {
"category": [
{
"type": ["h-card"],
"properties": {
"name": ["Person Bee"],
"url": ["http://personB.example.com"]
},
"shape": "rect",
"coords": "100,100,120,120",
"value": "Person Bee"
}
],
"name": [""]
}
}
]
}
<span class="h-entry">
<area class="p-category h-card" href="http://personB.example.com" alt="Person Bee" shape="rect" coords="100,100,120,120">
</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment