adding specs for rels/alternates
This commit is contained in:
parent
f2cc8b037a
commit
6b6524e4af
3 changed files with 39 additions and 0 deletions
12
spec/support/lib/microformats2/rels.html
Normal file
12
spec/support/lib/microformats2/rels.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Rels Test</title>
|
||||
<base href="http://example.org/">
|
||||
<link rel="updates alternate" href="http://tantek.com/updates.atom" type="application/atom+xml" />
|
||||
</head>
|
||||
<body>
|
||||
<li><a rel="met friend" href="http://adactio.com/">Jeremy Keith</a></li>
|
||||
<li><a rel="met friend" href="http://tantek.com/">Tantek Çelik</a></li>
|
||||
</body>
|
||||
</html>
|
13
spec/support/lib/microformats2/rels.js
Normal file
13
spec/support/lib/microformats2/rels.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"items": [],
|
||||
"rels": {
|
||||
"friend": ["http://adactio.com/", "http://tantek.com/"],
|
||||
"met": ["http://adactio.com/", "http://tantek.com/"]
|
||||
},
|
||||
"alternates": [
|
||||
{"url": "http://tantek.com/updates.atom",
|
||||
"type": "application/atom+xml",
|
||||
"rel": "updates"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue