Skip to content

Commit 9f7b024

Browse files
committed
Merge pull request #43 from microformats/pr/42
Pr/42
2 parents c6f84cc + e585ed2 commit 9f7b024

File tree

89 files changed

+186
-451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+186
-451
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ A test is built in two parts a HTML file, which contains a fragment of HTML to p
2626

2727
5. Once you have created the test please update the change-log.html Add a `h-entry` with details of the test . At the bottom of the page please add yourself as a contributor on the authors list
2828

29+
### Date format for testing purposes
30+
Within the tests datetime formats are based on the [HTML5 profile](http://www.w3.org/TR/html5/infrastructure.html#dates-and-times) which is a subset of ISO8601 and allows a space to separate the date and time. To allow us to compare dates please provide a way for your parser to output dates/times with the follwing rules:
2931

32+
* Date and time are separated by a spaces ie `2015-04-29 15:34`
33+
* Date and time keeps the authored level of specificity ie `15:34` does NOT become `15:34:00`
34+
* Times and timezones always use the `:` separator ie `+01:30` NOT `+0130`
35+
* If used the zulu is always uppercase ie `2015-04-29 15:34Z`
3036

3137

3238
###License

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Glenn Jones",
33
"name": "microformat-tests",
44
"description": "A microformat 2 testsuite",
5-
"version": "0.1.21",
5+
"version": "0.1.22",
66
"license": "Public Domain",
77
"repository": {
88
"type": "git",
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<div class="h-card">
22
<p>
3-
<a class="p-name org u-url" href="http://mozilla.org/">Mozilla Foundation</a>
3+
<a class="p-name p-org u-url" href="http://mozilla.org/">Mozilla Foundation</a>
4+
<img class="logo" src="../logo.jpg"/>
45
</p>
56
<p class="adr">
67
<span class="street-address">665 3rd St.</span>
78
<span class="extended-address">Suite 207</span>
89
<span class="locality">San Francisco</span>,
910
<span class="region">CA</span>
1011
<span class="postal-code">94107</span>
11-
<span class="country-name">U.S.A.</span>
12+
<span class="p-country-name">U.S.A.</span>
1213
</p>
1314
</div>

tests/microformats-mixed/h-card/mixedpropertries.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"extended-address": ["Suite 207"],
1414
"locality": ["San Francisco"],
1515
"region": ["CA"],
16-
"postal-code": ["94107"],
17-
"country-name": ["U.S.A."],
18-
"name": ["665 3rd St. \n Suite 207 \n San Francisco, \n CA \n 94107 \n U.S.A."]
16+
"postal-code": ["94107"]
1917
}
2018
}]
2119
}

tests/microformats-mixed/h-entry/mixedroots.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<div class="h-entry">
55
<div class="h-card vcard author p-author">
6-
<img class="photo logo u-photo" src="https://aaronparecki.com/images/aaronpk.png" alt="Aaron Parecki"/>
6+
<img class="photo logo u-photo u-logo" src="https://aaronparecki.com/images/aaronpk.png" alt="Aaron Parecki"/>
77
<a href="https://aaronparecki.com/" rel="author" class="u-url u-uid url">aaronparecki.com</a>
88
<a class="p-name fn value" href="https://aaronparecki.com/">Aaron Parecki</a>
99
<a href="https://plus.google.com/117847912875913905493" rel="author" class="google-profile">Aaron Parecki</a>

tests/microformats-mixed/h-resume/mixedroots.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<p class="fn">Tim Berners-Lee</p>
55
<p class="title">Director of the World Wide Web Foundation</p>
66
</div>
7-
<p class="summary">Invented the World Wide Web.</p><hr />
8-
<div class="p-experience vevent h-card">
7+
<p class="p-summary">Invented the World Wide Web.</p><hr />
8+
<div class="p-experience vevent vcard">
99
<p class="title">Director</p>
10-
<p><a class="fn p-org summary url" href="http://www.webfoundation.org/">World Wide Web Foundation</a></p>
10+
<p><a class="fn org summary url" href="http://www.webfoundation.org/">World Wide Web Foundation</a></p>
1111
<p>
1212
<time class="dtstart" datetime="2009-01-18">Jan 2009</time> – Present
1313
<time class="duration" datetime="P2Y11M">(2 years 11 month)</time>

tests/microformats-v1/adr/justaname.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/microformats-v1/adr/justaname.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/microformats-v1/adr/simpleproperties.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"locality": ["San Francisco"],
88
"region": ["CA"],
99
"postal-code": ["94107"],
10-
"country-name": ["U.S.A."],
11-
"name": ["665 3rd St. \n Suite 207 \n San Francisco, \n CA \n 94107 \n U.S.A."]
10+
"country-name": ["U.S.A."]
1211
}
1312
}],
1413
"rels": {},

tests/microformats-v1/geo/abbrpattern.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"type": ["h-geo"],
44
"properties": {
55
"latitude": ["37.408183"],
6-
"longitude": ["-122.13855"],
7-
"name": ["N 37° 24.491, \n W 122° 08.313"]
6+
"longitude": ["-122.13855"]
87
}
98
}],
109
"rels": {},

0 commit comments

Comments
 (0)