├── tests ├── microformats-v1 │ ├── hcard │ │ ├── justaname.html │ │ ├── justahyperlink.html │ │ ├── hyperlinkedphoto.html │ │ ├── justaname.json │ │ ├── hyperlinkedphoto.json │ │ ├── justahyperlink.json │ │ ├── format.html │ │ ├── format.json │ │ ├── email.json │ │ ├── name.json │ │ ├── name.html │ │ ├── email.html │ │ ├── single.json │ │ └── single.html │ ├── geo │ │ ├── abbrpattern.html │ │ ├── simpleproperties.html │ │ ├── hidden.json │ │ ├── abbrpattern.json │ │ ├── simpleproperties.json │ │ ├── valuetitleclass.json │ │ ├── hidden.html │ │ └── valuetitleclass.html │ ├── hreview-aggregate │ │ ├── justahyperlink.html │ │ ├── vevent.html │ │ ├── justahyperlink.json │ │ ├── hcard.html │ │ ├── vevent.json │ │ └── hcard.json │ ├── hreview │ │ ├── item.html │ │ ├── item.json │ │ └── vcard.html │ ├── hcalendar │ │ ├── concatenate.json │ │ ├── concatenate.html │ │ ├── combining.html │ │ ├── ampm.json │ │ ├── attendees.html │ │ ├── time.json │ │ ├── combining.json │ │ ├── attendees.json │ │ ├── ampm.html │ │ └── time.html │ ├── adr │ │ ├── simpleproperties.html │ │ └── simpleproperties.json │ ├── includes │ │ ├── table.html │ │ ├── table.json │ │ ├── hyperlink.html │ │ ├── hcarditemref.html │ │ ├── object.html │ │ ├── heventitemref.html │ │ ├── heventitemref.json │ │ ├── object.json │ │ ├── hyperlink.json │ │ └── hcarditemref.json │ ├── hresume │ │ ├── affiliation.html │ │ ├── skill.html │ │ ├── education.html │ │ ├── work.html │ │ ├── affiliation.json │ │ ├── contact.html │ │ ├── education.json │ │ ├── work.json │ │ ├── skill.json │ │ └── contact.json │ ├── hproduct │ │ ├── simpleproperties.html │ │ ├── simpleproperties.json │ │ ├── aggregate.html │ │ ├── aggregate.json │ │ └── change-log.html │ ├── hentry │ │ ├── summarycontent.html │ │ └── summarycontent.json │ ├── hnews │ │ ├── minimum.html │ │ └── all.html │ └── hfeed │ │ └── simple.html ├── microformats-v2 │ ├── h-card │ │ ├── justaname.html │ │ ├── justahyperlink.html │ │ ├── hyperlinkedphoto.html │ │ ├── hcard.html │ │ ├── nested.html │ │ ├── justaname.json │ │ ├── relativeurlsempty.html │ │ ├── justahyperlink.json │ │ ├── baseurl.html │ │ ├── impliedurlempty.html │ │ ├── relativeurls.html │ │ ├── impliedurl.html │ │ ├── childimplied.html │ │ ├── childimplied.json │ │ ├── p-property.json │ │ ├── hyperlinkedphoto.json │ │ ├── nested.json │ │ ├── relativeurlsempty.json │ │ ├── hcard.json │ │ ├── extendeddescription.html │ │ ├── baseurl.json │ │ ├── relativeurls.json │ │ ├── extendeddescription.json │ │ ├── p-property.html │ │ ├── impliedphoto.html │ │ ├── impliedurlempty.json │ │ ├── impliedurl.json │ │ └── impliedname.html │ ├── h-product │ │ ├── justaname.html │ │ ├── justahyperlink.html │ │ ├── justaname.json │ │ ├── justahyperlink.json │ │ ├── simpleproperties.html │ │ ├── aggregate.html │ │ ├── simpleproperties.json │ │ ├── aggregate.json │ │ └── change-log.html │ ├── h-review │ │ ├── justaname.html │ │ ├── hyperlink.html │ │ ├── photo.html │ │ ├── implieditem.html │ │ ├── justaname.json │ │ ├── hyperlink.json │ │ ├── item.html │ │ ├── photo.json │ │ ├── implieditem.json │ │ ├── item.json │ │ ├── vcard.html │ │ └── vcard.json │ ├── h-entry │ │ ├── justaname.html │ │ ├── justahyperlink.html │ │ ├── encoding.html │ │ ├── justaname.json │ │ ├── scriptstyletags.html │ │ ├── justahyperlink.json │ │ ├── impliedvalue-nested.html │ │ ├── scriptstyletags.json │ │ ├── encoding.json │ │ ├── impliedname.html │ │ ├── urlincontent.html │ │ ├── impliedvalue-nested.json │ │ ├── u-property.json │ │ ├── summarycontent.html │ │ ├── impliedname.json │ │ ├── urlincontent.json │ │ ├── u-property.html │ │ └── summarycontent.json │ ├── h-event │ │ ├── justaname.html │ │ ├── justahyperlink.html │ │ ├── justaname.json │ │ ├── justahyperlink.json │ │ ├── concatenate.json │ │ ├── concatenate.html │ │ ├── dt-property.json │ │ ├── attendees.html │ │ ├── combining.html │ │ ├── ampm.json │ │ ├── time.json │ │ ├── dates.json │ │ ├── dates.html │ │ ├── combining.json │ │ ├── dt-property.html │ │ ├── attendees.json │ │ ├── ampm.html │ │ └── time.html │ ├── h-adr │ │ ├── justaname.html │ │ ├── geourl.html │ │ ├── justaname.json │ │ ├── geourl.json │ │ ├── lettercase.json │ │ ├── simpleproperties.html │ │ ├── geo.html │ │ ├── simpleproperties.json │ │ ├── geo.json │ │ ├── lettercase.html │ │ └── change-log.html │ ├── h-resume │ │ ├── justaname.html │ │ ├── justaname.json │ │ ├── skill.json │ │ ├── skill.html │ │ ├── affiliation.html │ │ ├── education.html │ │ ├── affiliation.json │ │ ├── work.html │ │ ├── contact.html │ │ ├── contact.json │ │ ├── education.json │ │ └── work.json │ ├── rel │ │ ├── license.html │ │ ├── nofollow.html │ │ ├── varying-text-duplicate-rels.html │ │ ├── license.json │ │ ├── nofollow.json │ │ ├── rel-urls.html │ │ ├── varying-text-duplicate-rels.json │ │ ├── xfn-elsewhere.html │ │ ├── duplicate-rels.html │ │ ├── rel-urls.json │ │ ├── xfn-all.html │ │ ├── xfn-elsewhere.json │ │ └── duplicate-rels.json │ ├── h-geo │ │ ├── justaname.html │ │ ├── abbrpattern.html │ │ ├── justaname.json │ │ ├── simpleproperties.html │ │ ├── hidden.json │ │ ├── abbrpattern.json │ │ ├── valuetitleclass.json │ │ ├── simpleproperties.json │ │ ├── altitude.html │ │ ├── altitude.json │ │ ├── hidden.html │ │ └── valuetitleclass.html │ ├── h-recipe │ │ ├── minimum.html │ │ ├── minimum.json │ │ └── change-log.html │ ├── mixed │ │ ├── id.html │ │ ├── vendorprefixproperty.json │ │ ├── ignoretemplate.json │ │ ├── ignoretemplate.html │ │ ├── vendorprefix.html │ │ ├── vendorprefixproperty.html │ │ ├── id.json │ │ ├── vendorprefix.json │ │ └── change-log.html │ ├── h-review-aggregate │ │ ├── justahyperlink.html │ │ ├── hevent.html │ │ ├── justahyperlink.json │ │ ├── hevent.json │ │ ├── simpleproperties.html │ │ └── simpleproperties.json │ └── h-feed │ │ ├── implied-title.html │ │ ├── simple.html │ │ ├── implied-title.json │ │ └── simple.json ├── microformats-mixed │ ├── h-card │ │ ├── tworoots.html │ │ ├── tworoots.json │ │ ├── mixedproperties.html │ │ └── mixedproperties.json │ ├── h-resume │ │ ├── mixedroots.html │ │ └── mixedroots.json │ └── h-entry │ │ ├── mixedroots.html │ │ ├── mixedroots.json │ │ └── change-log.html └── microformats-v2-unit │ ├── names │ ├── names-properties-multi.html │ ├── tentative-names-properties-multi.html │ ├── names-microformats-multi.html │ ├── tentative-names-properties-multi.json │ ├── names-properties-multi.json │ ├── names-microformats-multi.json │ └── names-microformats.html │ ├── properties │ ├── properties-e.html │ └── properties-e.json │ ├── value │ ├── value-e.json │ └── value-e.html │ └── nested │ ├── nested-microformat-mistyped.html │ ├── tentative-nested-microformat.html │ └── nested-microformat.html ├── .gitignore ├── composer.json ├── interface.js ├── package.json └── app.js /tests/microformats-v1/hcard/justaname.html: -------------------------------------------------------------------------------- 1 |

Frances Berriman

-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/justaname.html: -------------------------------------------------------------------------------- 1 |

Frances Berriman

-------------------------------------------------------------------------------- /tests/microformats-v2/h-product/justaname.html: -------------------------------------------------------------------------------- 1 |

Raspberry Pi

-------------------------------------------------------------------------------- /tests/microformats-v2/h-review/justaname.html: -------------------------------------------------------------------------------- 1 |

Crepes on Cole

-------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/justaname.html: -------------------------------------------------------------------------------- 1 |

microformats.org at 7

-------------------------------------------------------------------------------- /tests/microformats-v2/h-event/justaname.html: -------------------------------------------------------------------------------- 1 |

IndieWebCamp 2012

-------------------------------------------------------------------------------- /tests/microformats-mixed/h-card/tworoots.html: -------------------------------------------------------------------------------- 1 |

Frances Berriman

-------------------------------------------------------------------------------- /tests/microformats-v1/hcard/justahyperlink.html: -------------------------------------------------------------------------------- 1 | Ben Ward -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/justahyperlink.html: -------------------------------------------------------------------------------- 1 | Ben Ward -------------------------------------------------------------------------------- /tests/microformats-v2/h-adr/justaname.html: -------------------------------------------------------------------------------- 1 |

665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.

-------------------------------------------------------------------------------- /tests/microformats-v2/h-resume/justaname.html: -------------------------------------------------------------------------------- 1 |

Tim Berners-Lee, invented the World Wide Web.

-------------------------------------------------------------------------------- /tests/microformats-v2/h-product/justahyperlink.html: -------------------------------------------------------------------------------- 1 | Raspberry Pi -------------------------------------------------------------------------------- /tests/microformats-v2/rel/license.html: -------------------------------------------------------------------------------- 1 | cc by 2.5 -------------------------------------------------------------------------------- /tests/microformats-v2/h-event/justahyperlink.html: -------------------------------------------------------------------------------- 1 | IndieWebCamp 2012 -------------------------------------------------------------------------------- /tests/microformats-v2/rel/nofollow.html: -------------------------------------------------------------------------------- 1 | Copyrights -------------------------------------------------------------------------------- /tests/microformats-v2/h-review/hyperlink.html: -------------------------------------------------------------------------------- 1 | Crepes on Cole -------------------------------------------------------------------------------- /tests/microformats-v2/h-review/photo.html: -------------------------------------------------------------------------------- 1 | Crepes on Cole -------------------------------------------------------------------------------- /tests/microformats-v2/h-geo/justaname.html: -------------------------------------------------------------------------------- 1 |

On my way to The Bricklayer's Arms 2 | (Geo: 51.513458;-0.14812) 3 |

-------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/justahyperlink.html: -------------------------------------------------------------------------------- 1 | microformats.org at 7 -------------------------------------------------------------------------------- /tests/microformats-v1/hcard/hyperlinkedphoto.html: -------------------------------------------------------------------------------- 1 | 2 | Rohit Khare 3 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/hyperlinkedphoto.html: -------------------------------------------------------------------------------- 1 | 2 | Rohit Khare 3 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/encoding.html: -------------------------------------------------------------------------------- 1 |
2 |
x<y AT&T <b>NotBold</b> Bold
3 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hcard/justaname.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": {} 5 | }], 6 | "rels": {}, 7 | "rel-urls": {} 8 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hcard/hyperlinkedphoto.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": {} 5 | }], 6 | "rels": {}, 7 | "rel-urls": {} 8 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hcard/justahyperlink.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": {} 5 | }], 6 | "rels": {}, 7 | "rel-urls": {} 8 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-adr/geourl.html: -------------------------------------------------------------------------------- 1 |

2 | Bricklayer's Arms, 3 | London 4 |

-------------------------------------------------------------------------------- /tests/microformats-v1/hcard/format.html: -------------------------------------------------------------------------------- 1 |

2 | 3 | John 4 | Doe 5 | 6 |

-------------------------------------------------------------------------------- /tests/microformats-v1/geo/abbrpattern.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | N 37° 24.491, 4 | W 122° 08.313 5 |

-------------------------------------------------------------------------------- /tests/microformats-v2/h-review/implieditem.html: -------------------------------------------------------------------------------- 1 |
2 | Crepes on Cole 3 |

4.7 out of 5 stars

4 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/hcard.html: -------------------------------------------------------------------------------- 1 |
2 | Mitchell Baker 3 | (Mozilla Foundation) 4 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/nested.html: -------------------------------------------------------------------------------- 1 |
2 | Mitchell Baker 3 | (Mozilla Foundation) 4 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-geo/abbrpattern.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | N 37° 24.491, 4 | W 122° 08.313 5 |

-------------------------------------------------------------------------------- /tests/microformats-v1/geo/simpleproperties.html: -------------------------------------------------------------------------------- 1 | We are meeting at 2 | 3 | The Bricklayer's Arms 4 | (Geo: 51.513458: 5 | -0.14812) 6 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-recipe/minimum.html: -------------------------------------------------------------------------------- 1 |
2 |

Toast

3 | 7 |
-------------------------------------------------------------------------------- /tests/microformats-mixed/h-card/tworoots.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["Frances Berriman"] 6 | } 7 | }], 8 | "rels": {}, 9 | "rel-urls": {} 10 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/justaname.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["Frances Berriman"] 6 | } 7 | }], 8 | "rels": {}, 9 | "rel-urls": {} 10 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-event/justaname.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["IndieWebCamp 2012"] 6 | } 7 | }], 8 | "rels": {}, 9 | "rel-urls": {} 10 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-geo/justaname.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-geo"], 4 | "properties": { 5 | "name": ["51.513458;-0.14812"] 6 | } 7 | }], 8 | "rels": {}, 9 | "rel-urls": {} 10 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-product/justaname.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-product"], 4 | "properties": { 5 | "name": ["Raspberry Pi"] 6 | } 7 | }], 8 | "rels": {}, 9 | "rel-urls": {} 10 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-review/justaname.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review"], 4 | "properties": { 5 | "name": ["Crepes on Cole"] 6 | } 7 | }], 8 | "rels": {}, 9 | "rel-urls": {} 10 | } -------------------------------------------------------------------------------- /tests/microformats-v2/mixed/id.html: -------------------------------------------------------------------------------- 1 |
2 | Luca Sparrow 3 |
4 |
5 | Selin Holden 6 |
7 |
8 | Danyaal Rasmussen 9 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/justaname.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-entry"], 4 | "properties": { 5 | "name": ["microformats.org at 7"] 6 | } 7 | }], 8 | "rels": {}, 9 | "rel-urls": {} 10 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-geo/simpleproperties.html: -------------------------------------------------------------------------------- 1 |

We are meeting at 2 | The Bricklayer's Arms 3 | (Geo: 51.513458: 4 | -0.14812) 5 |

-------------------------------------------------------------------------------- /tests/microformats-v1/geo/hidden.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-geo"], 4 | "properties": { 5 | "latitude": ["51.513458"], 6 | "longitude": ["-0.14812"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-adr/justaname.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-adr"], 4 | "properties": { 5 | "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."] 6 | } 7 | }], 8 | "rels": {}, 9 | "rel-urls": {} 10 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/relativeurlsempty.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | Max Mustermann 4 | 5 | 6 | 7 |
8 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-resume/justaname.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-resume"], 4 | "properties": { 5 | "name": ["Tim Berners-Lee, invented the World Wide Web."] 6 | } 7 | }], 8 | "rels": {}, 9 | "rel-urls": {} 10 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hcard/format.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["John \n Doe"], 6 | "given-name": ["John"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-geo/hidden.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-geo"], 4 | "properties": { 5 | "latitude": ["51.513458"], 6 | "longitude": ["-0.14812"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /tests/microformats-v1/geo/abbrpattern.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-geo"], 4 | "properties": { 5 | "latitude": ["37.408183"], 6 | "longitude": ["-122.13855"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /tests/microformats-v1/geo/simpleproperties.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-geo"], 4 | "properties": { 5 | "latitude": ["51.513458"], 6 | "longitude": ["-0.14812"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /tests/microformats-v1/geo/valuetitleclass.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-geo"], 4 | "properties": { 5 | "latitude": ["51.513458"], 6 | "longitude": ["-0.14812"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-geo/abbrpattern.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-geo"], 4 | "properties": { 5 | "latitude": ["37.408183"], 6 | "longitude": ["-122.13855"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | lib-cov 3 | *.seed 4 | *.log 5 | *.csv 6 | *.dat 7 | *.out 8 | *.pid 9 | *.gz 10 | 11 | pids 12 | logs 13 | results 14 | 15 | node_modules 16 | lib 17 | oldhtml 18 | templates/change-log.html 19 | 20 | npm-debug.log 21 | _site 22 | .DS_Store 23 | *.svn-base 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/justahyperlink.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["Ben Ward"], 6 | "url": ["http://benward.me/"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-geo/valuetitleclass.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-geo"], 4 | "properties": { 5 | "latitude": ["51.513458"], 6 | "longitude": ["-0.14812"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-product/justahyperlink.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-product"], 4 | "properties": { 5 | "name": ["Raspberry Pi"], 6 | "url": ["http://www.raspberrypi.org/"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/scriptstyletags.html: -------------------------------------------------------------------------------- 1 |
2 | A post 3 |
text bold
4 |
5 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-event/justahyperlink.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["IndieWebCamp 2012"], 6 | "url": ["http://indiewebcamp.com/2012"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hreview-aggregate/justahyperlink.html: -------------------------------------------------------------------------------- 1 |

2 | 3 | Mediterranean Wraps 4 | - Rated: 5 | 4.5 out of 5 (6 reviews) 6 |

-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/baseurl.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | Mitchell Baker 4 | (Mozilla Foundation) 5 | 6 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-review/hyperlink.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review"], 4 | "properties": { 5 | "name": ["Crepes on Cole"], 6 | "url": ["https://plus.google.com/116941523817079328322/about"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mf2/tests", 3 | "type": "library", 4 | "description": "Microformats test suite", 5 | "homepage": "https://github.com/microformats/tests", 6 | "license": "CC0", 7 | "authors": [ 8 | { 9 | "name": "Glenn Jones", 10 | "homepage": "https://glennjones.net/" 11 | } 12 | ] 13 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/impliedurlempty.html: -------------------------------------------------------------------------------- 1 | Jane Doe 2 | Jane Doe 3 |
Jane Doe

4 |
Jane Doe

5 |
Jane Doe

-------------------------------------------------------------------------------- /tests/microformats-v1/hreview/item.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

4 | 5 | Crepes on Cole 6 |

7 |

5 out of 5 stars

8 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/justahyperlink.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-entry"], 4 | "properties": { 5 | "name": ["microformats.org at 7"], 6 | "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-geo/simpleproperties.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-geo"], 4 | "properties": { 5 | "name": ["The Bricklayer's Arms"], 6 | "latitude": ["51.513458"], 7 | "longitude": ["-0.14812"] 8 | } 9 | }], 10 | "rels": {}, 11 | "rel-urls": {} 12 | } -------------------------------------------------------------------------------- /tests/microformats-v2/rel/varying-text-duplicate-rels.html: -------------------------------------------------------------------------------- 1 | This is a contrived example - not found links like this in the wild: 2 | Asides 3 | B-sides 4 | seasides -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/relativeurls.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | Mitchell Baker 4 | (Mozilla Foundation) 5 | 6 |
-------------------------------------------------------------------------------- /tests/microformats-v2/rel/license.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [], 3 | "rels": { 4 | "license": ["http://creativecommons.org/licenses/by/2.5/"] 5 | }, 6 | "rel-urls": { 7 | "http://creativecommons.org/licenses/by/2.5/": { 8 | "text": "cc by 2.5", 9 | "rels": ["license"] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hcalendar/concatenate.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["The 4th Microformat party"], 6 | "start": ["2009-06-26 19:00"], 7 | "end": ["2009-06-26 22:00"] 8 | } 9 | }], 10 | "rels": {}, 11 | "rel-urls": {} 12 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-adr/geourl.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-adr"], 4 | "properties": { 5 | "name": ["Bricklayer's Arms"], 6 | "geo": ["geo:51.526421;-0.081067;crs=wgs84;u=40"], 7 | "locality": ["London"] 8 | } 9 | }], 10 | "rels": {}, 11 | "rel-urls": {} 12 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-adr/lettercase.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-adr"], 4 | "properties": { 5 | "name": ["Bricklayer's Arms"], 6 | "street-address": ["3 Charlotte Road"], 7 | "locality": ["City of London"] 8 | } 9 | }], 10 | "rels": {}, 11 | "rel-urls": {} 12 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hcalendar/concatenate.html: -------------------------------------------------------------------------------- 1 |
2 | The 4th Microformat party will be on 3 | 4 | , from 5 | to 6 | . 7 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-geo/altitude.html: -------------------------------------------------------------------------------- 1 |

My favourite hill in the lakes is 2 | 3 | Pen-y-ghent 4 | (Geo: 54.155278, 5 | -2.249722). It 6 | raises to 694m. 7 | 8 |

-------------------------------------------------------------------------------- /tests/microformats-v2/h-event/concatenate.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["The 4th Microformat party"], 6 | "start": ["2009-06-26 19:00-0600"], 7 | "end": ["2009-06-26 22:00-0600"] 8 | } 9 | }], 10 | "rels": {}, 11 | "rel-urls": {} 12 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-geo/altitude.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-geo"], 4 | "properties": { 5 | "name": ["Pen-y-ghent"], 6 | "latitude": ["54.155278"], 7 | "longitude": ["-2.249722"], 8 | "altitude": ["694"] 9 | } 10 | }], 11 | "rels": {}, 12 | "rel-urls": {} 13 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-review/item.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

4 | 5 | Crepes on Cole 6 |

7 |

5 out of 5 stars

8 |
-------------------------------------------------------------------------------- /tests/microformats-v1/geo/hidden.html: -------------------------------------------------------------------------------- 1 |

2 | The Bricklayer's Arms 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

-------------------------------------------------------------------------------- /tests/microformats-v1/adr/simpleproperties.html: -------------------------------------------------------------------------------- 1 |

2 | 665 3rd St. 3 | Suite 207 4 | San Francisco, 5 | CA 6 | 94107 7 | U.S.A. 8 |

-------------------------------------------------------------------------------- /tests/microformats-v2/h-event/concatenate.html: -------------------------------------------------------------------------------- 1 | 2 | The 4th Microformat party will be on 3 | 4 | , from 5 | 6 | to 7 | . 8 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-geo/hidden.html: -------------------------------------------------------------------------------- 1 |

2 | The Bricklayer's Arms 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

-------------------------------------------------------------------------------- /tests/microformats-v2/rel/nofollow.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [], 3 | "rels": { 4 | "nofollow": ["http://microformats.org/wiki/microformats:copyrights"] 5 | }, 6 | "rel-urls": { 7 | "http://microformats.org/wiki/microformats:copyrights": { 8 | "text": "Copyrights", 9 | "rels": ["nofollow"] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/impliedurl.html: -------------------------------------------------------------------------------- 1 | Jane Doe 2 | Jane Doe 3 |
Jane Doe

4 |
Jane Doe

5 |
Jane Doe

-------------------------------------------------------------------------------- /tests/microformats-v2/h-resume/skill.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-resume"], 4 | "properties": { 5 | "name": ["Tim Berners-Lee"], 6 | "summary": ["invented the World Wide Web"], 7 | "skill": ["information systems", "advocacy", "leadership"] 8 | } 9 | }], 10 | "rels": {}, 11 | "rel-urls": {} 12 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-review-aggregate/justahyperlink.html: -------------------------------------------------------------------------------- 1 |
2 |

Mediterranean Wraps

3 | 4 | Customers flock to this small restaurant for their 5 | tasty falafel and shawerma wraps and welcoming staff. 6 | 7 | 4.5 out of 5 8 |
-------------------------------------------------------------------------------- /tests/microformats-v2-unit/names/names-properties-multi.html: -------------------------------------------------------------------------------- 1 |
2 |
Valid
3 |
4 | 5 |
6 |
Valid
7 |
8 | 9 |
10 |
Valid 1
11 |
Valid 2
12 |
13 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-adr/simpleproperties.html: -------------------------------------------------------------------------------- 1 |

2 | 665 3rd St. 3 | Suite 207 4 | San Francisco, 5 | CA 6 | 94107 7 | U.S.A. 8 |

-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/childimplied.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |

Håkon Wium Lie

5 | 6 |
7 |
-------------------------------------------------------------------------------- /tests/microformats-v1/geo/valuetitleclass.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | 4 | 5 | N 51° 51.345, 6 | 7 | 8 | W -0° 14.812 9 | 10 | 11 |

-------------------------------------------------------------------------------- /tests/microformats-v2/h-geo/valuetitleclass.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | 4 | 5 | N 51° 51.345, 6 | 7 | 8 | W -0° 14.812 9 | 10 | 11 |

-------------------------------------------------------------------------------- /tests/microformats-v2/rel/rel-urls.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | post 1 4 | post 2 5 | French mobile homepage -------------------------------------------------------------------------------- /tests/microformats-v1/hcard/email.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["John Doe"], 6 | "email": ["mailto:john@example.com", "http://example.com/john@example.com", "mailto:john@example.com?subject=parser-test", "http://example.com/john@example.com"] 7 | } 8 | }], 9 | "rels": {}, 10 | "rel-urls": {} 11 | } 12 | -------------------------------------------------------------------------------- /tests/microformats-v1/includes/table.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
Opera
Chris Mills
Erik Möller
-------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/impliedvalue-nested.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 | Example Author 5 | Home 6 | 7 | Example Post 8 |
9 |
-------------------------------------------------------------------------------- /interface.js: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | // This file allows node apps to get the current 4 | // test suite version number programmicatlly 5 | // Glenn Jones 6 | 7 | 8 | if(require.main === module) { 9 | // if they want the app 10 | var app = require('app.js'); 11 | }else{ 12 | // if they want a module interface 13 | var pack = require('./package.json'); 14 | 15 | module.exports = { 16 | 'version': pack.version 17 | } 18 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-resume/skill.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | Tim Berners-Lee, 4 | invented the World Wide Web. 5 |

6 | Skills: 7 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-review/photo.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review"], 4 | "properties": { 5 | "name": ["Crepes on Cole"], 6 | "photo": [ 7 | { 8 | "alt": "Crepes on Cole", 9 | "value": "http://example.com/images/photo.gif" 10 | } 11 | ] 12 | } 13 | }], 14 | "rels": {}, 15 | "rel-urls": {} 16 | } -------------------------------------------------------------------------------- /tests/microformats-v2/mixed/vendorprefixproperty.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": ["h-card"], 5 | "properties": { 6 | "name": ["Valid"], 7 | "vendor-name": ["Valid"], 8 | "8-vendor-name": ["Valid"], 9 | "8to8-vendor-name": ["Valid"], 10 | "super-extra-long-microformat-property-name": ["Valid"] 11 | } 12 | } 13 | ], 14 | "rels": {}, 15 | "rel-urls": {} 16 | } 17 | -------------------------------------------------------------------------------- /tests/microformats-v2-unit/properties/properties-e.html: -------------------------------------------------------------------------------- 1 | 7 | 8 |
9 |
http://example.test/NotPartOfTest
10 |
Valid
11 |
12 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/scriptstyletags.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-entry"], 4 | "properties": { 5 | "name": ["A post"], 6 | "content": [{ 7 | "value": "text bold", 8 | "html": "text bold" 9 | }] 10 | } 11 | }], 12 | "rels": {}, 13 | "rel-urls": {} 14 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/encoding.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-entry"], 4 | "properties": { 5 | "name": ["xNotBold Bold"], 6 | "content": [{ 7 | "value": "xNotBold Bold", 8 | "html": "x<y AT&T <b>NotBold</b> Bold" 9 | }] 10 | } 11 | }], 12 | "rels": {}, 13 | "rel-urls": {} 14 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/childimplied.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["Håkon Wium Lie"], 6 | "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/9/96/H%C3%A5kon-Wium-Lie-2009-03.jpg/215px-H%C3%A5kon-Wium-Lie-2009-03.jpg"], 7 | "url": ["http://people.opera.com/howcome/"] 8 | } 9 | }], 10 | "rels": {}, 11 | "rel-urls": {} 12 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-adr/geo.html: -------------------------------------------------------------------------------- 1 |

2 | Bricklayer's Arms 3 | 4 | 3 Charlotte Road, 5 | City of London, 6 | EC2A 3PE, 7 | UK 8 | – 9 | Geo:(51.526421;-0.081067) 10 |

-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/p-property.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["JohnDoe"], 6 | "given-name": ["John"], 7 | "additional-name": ["Peter"], 8 | "family-name": ["Doe"], 9 | "honorific-suffix": ["MSc", "", "", "PHD"], 10 | "org": ["Madgex", "Mozilla"] 11 | } 12 | }], 13 | "rels": {}, 14 | "rel-urls": {} 15 | } -------------------------------------------------------------------------------- /tests/microformats-v2/mixed/ignoretemplate.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": ["h-card"], 5 | "properties": { 6 | "name": ["Jan"], 7 | "org": [ 8 | { 9 | "type": ["h-card"], 10 | "properties": { 11 | "name": ["10M"] 12 | }, 13 | "value": "10M" 14 | } 15 | ] 16 | } 17 | } 18 | ], 19 | "rels": {}, 20 | "rel-urls": {} 21 | } 22 | -------------------------------------------------------------------------------- /tests/microformats-v1/adr/simpleproperties.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-adr"], 4 | "properties": { 5 | "street-address": ["665 3rd St."], 6 | "extended-address": ["Suite 207"], 7 | "locality": ["San Francisco"], 8 | "region": ["CA"], 9 | "postal-code": ["94107"], 10 | "country-name": ["U.S.A."] 11 | } 12 | }], 13 | "rels": {}, 14 | "rel-urls": {} 15 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-adr/simpleproperties.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-adr"], 4 | "properties": { 5 | "street-address": ["665 3rd St."], 6 | "extended-address": ["Suite 207"], 7 | "locality": ["San Francisco"], 8 | "region": ["CA"], 9 | "postal-code": ["94107"], 10 | "country-name": ["U.S.A."] 11 | } 12 | }], 13 | "rels": {}, 14 | "rel-urls": {} 15 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hcard/name.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "honorific-prefix": ["Dr"], 6 | "given-name": ["John"], 7 | "additional-name": ["Peter"], 8 | "family-name": ["Doe"], 9 | "honorific-suffix": ["MSc", "PHD"], 10 | "photo": ["http://example.com/images/logo.gif"] 11 | } 12 | }], 13 | "rels": {}, 14 | "rel-urls": {} 15 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-recipe/minimum.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-recipe"], 4 | "properties": { 5 | "name": ["Toast"], 6 | "ingredient": [{ 7 | "value": "Slice of bread", 8 | "html": "Slice of bread" 9 | }, { 10 | "value": "Butter", 11 | "html": "Butter" 12 | }] 13 | } 14 | }], 15 | "rels": {}, 16 | "rel-urls": {} 17 | } -------------------------------------------------------------------------------- /tests/microformats-v2/mixed/ignoretemplate.html: -------------------------------------------------------------------------------- 1 |
2 |

Jan Sauer

3 | 4 | 7 | 8 | 9 | Jan 10 | H 11 | 12 | 13 | 14 |

15 | 10M 16 | 19 |

20 | 21 |
22 | -------------------------------------------------------------------------------- /tests/microformats-v2-unit/names/tentative-names-properties-multi.html: -------------------------------------------------------------------------------- 1 | 6 | 7 |
8 |
Duplicated
9 |
10 | 11 |
12 |
2000-01-01 00:00:00+00:00
13 |
14 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-resume/affiliation.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | Tim Berners-Lee, 4 | invented the World Wide Web. 5 |

6 | Belongs to following groups: 7 |

8 | 9 | W3C 10 | 11 |

12 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/hyperlinkedphoto.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["Rohit Khare"], 6 | "photo": [ 7 | { 8 | "alt": "Rohit Khare", 9 | "value": "http://example.com/images/photo.gif" 10 | } 11 | ], 12 | "url": ["http://rohit.khare.org/"] 13 | } 14 | }], 15 | "rels": {}, 16 | "rel-urls": {} 17 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hcard/name.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | Dr 5 | John 6 | P 7 | Doe 8 | 9 | PHD 10 |
11 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hresume/affiliation.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | Tim Berners-Lee, 4 | invented the World Wide Web. 5 |

6 | Belongs to following groups: 7 |

8 | 9 | W3C 10 | 11 |

12 |
-------------------------------------------------------------------------------- /tests/microformats-v2/rel/varying-text-duplicate-rels.json: -------------------------------------------------------------------------------- 1 | { 2 | "rels": { 3 | "category": [ 4 | "http://ma.tt/category/asides/" 5 | ], 6 | "tag": [ 7 | "http://ma.tt/category/asides/" 8 | ] 9 | }, 10 | "items": [], 11 | "rel-urls": { 12 | "http://ma.tt/category/asides/": { 13 | "rels": [ 14 | "category", 15 | "tag" 16 | ], 17 | "text": "Asides" 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/microformats-v1/includes/table.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["Chris Mills"], 6 | "url": ["http://dev.opera.com/"], 7 | "org": ["Opera"] 8 | } 9 | }, { 10 | "type": ["h-card"], 11 | "properties": { 12 | "name": ["Erik Möller"], 13 | "url": ["http://dev.opera.com/"], 14 | "org": ["Opera"] 15 | } 16 | }], 17 | "rels": {}, 18 | "rel-urls": {} 19 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/nested.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["Mitchell Baker"], 6 | "url": ["http://blog.lizardwrangler.com/"] 7 | }, 8 | "children": [{ 9 | "type": ["h-card", "h-org"], 10 | "properties": { 11 | "name": ["Mozilla Foundation"], 12 | "url": ["http://mozilla.org/"] 13 | } 14 | }] 15 | }], 16 | "rels": {}, 17 | "rel-urls": {} 18 | } 19 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-review/implieditem.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review"], 4 | "properties": { 5 | "item": [{ 6 | "value": "Crepes on Cole", 7 | "type": ["h-item"], 8 | "properties": { 9 | "name": ["Crepes on Cole"], 10 | "url": ["http://example.com/crepeoncole"] 11 | } 12 | }], 13 | "rating": ["4.7"] 14 | } 15 | }], 16 | "rels": {}, 17 | "rel-urls": {} 18 | } -------------------------------------------------------------------------------- /tests/microformats-v2-unit/names/names-microformats-multi.html: -------------------------------------------------------------------------------- 1 |
Valid
2 | 3 |
Valid
4 | 5 | 6 |
Valid
7 | 8 | 9 |
Valid
10 | 11 | 12 |
13 | -------------------------------------------------------------------------------- /tests/microformats-v1/hreview-aggregate/vevent.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Fullfrontal

4 |

A one day JavaScript Conference held in Brighton

5 |

6 |
7 | 8 |

9 | 9.9 out of 10 | 10 11 | based on 62 reviews 12 |

13 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-event/dt-property.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["The party"], 6 | "start": [ 7 | "2013-03-14", 8 | "2013-06-25 07:00:00", 9 | "2013-06-26", 10 | "2013-06-27", 11 | "2013-06-28", 12 | "2013-06-29", 13 | "2013-07-01", 14 | "2013-07-02" 15 | ] 16 | } 17 | }], 18 | "rels": {}, 19 | "rel-urls": {} 20 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-adr/geo.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-adr"], 4 | "properties": { 5 | "name": ["Bricklayer's Arms"], 6 | "label": ["3 Charlotte Road, \n City of London, \n EC2A 3PE, \n UK"], 7 | "street-address": ["3 Charlotte Road"], 8 | "locality": ["City of London"], 9 | "postal-code": ["EC2A 3PE"], 10 | "country-name": ["UK"], 11 | "geo": ["51.526421;-0.081067"] 12 | } 13 | }], 14 | "rels": {}, 15 | "rel-urls": {} 16 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-event/attendees.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | CPJ Online Press Freedom Summit 4 | () in 5 | San Francisco. 6 | Attendees: 7 |
    8 |
  • Brian Warner
  • 9 |
  • Kyle Machulis
  • 10 |
  • Tantek Çelik
  • 11 |
  • Sid Sutter
  • 12 |
13 |
14 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-event/combining.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | IndieWebCamp 2012 4 | 5 | from 6 | to at 7 | 8 | Geoloqi, 9 | 920 SW 3rd Ave. Suite 400, 10 | Portland, 11 | OR 12 | 13 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-review-aggregate/hevent.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Fullfrontal

4 |

A one day JavaScript Conference held in Brighton

5 |

6 |
7 | 8 |

9 | 9.9 out of 10 | 10 11 | based on 62 reviews 12 |

13 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/relativeurlsempty.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": [ 5 | "h-card" 6 | ], 7 | "properties": { 8 | "name": [ 9 | "Max Mustermann" 10 | ], 11 | "url": [ 12 | "http://example.com/profile" 13 | ], 14 | "uid": [ 15 | "http://example.com/profile" 16 | ] 17 | } 18 | } 19 | ], 20 | "rels": {}, 21 | "rel-urls": {} 22 | } 23 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/hcard.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "url": ["http://blog.lizardwrangler.com/"], 6 | "name": ["Mitchell Baker"], 7 | "org": [{ 8 | "value": "Mozilla Foundation", 9 | "type": ["h-card"], 10 | "properties": { 11 | "name": ["Mozilla Foundation"], 12 | "url": ["http://mozilla.org/"] 13 | } 14 | }] 15 | } 16 | }], 17 | "rels": {}, 18 | "rel-urls": {} 19 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hreview/item.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review"], 4 | "properties": { 5 | "item": [{ 6 | "value": "Crepes on Cole", 7 | "type": ["h-item"], 8 | "properties": { 9 | "photo": ["http://example.com/images/photo.gif"], 10 | "name": ["Crepes on Cole"], 11 | "url": ["http://example.com/crepeoncole"] 12 | } 13 | }], 14 | "rating": ["5"] 15 | } 16 | }], 17 | "rels": {}, 18 | "rel-urls": {} 19 | } -------------------------------------------------------------------------------- /tests/microformats-v2-unit/value/value-e.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": [ 5 | "h-test-no-vcp" 6 | ], 7 | "properties": { 8 | "name": [ 9 | "NotPartOfTest" 10 | ], 11 | "no-vcp": [ 12 | { 13 | "html": "Valid", 14 | "value": "Valid" 15 | } 16 | ] 17 | } 18 | } 19 | ], 20 | "rels": {}, 21 | "rel-urls": {} 22 | } 23 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-review/item.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review"], 4 | "properties": { 5 | "item": [{ 6 | "value": "Crepes on Cole", 7 | "type": ["h-item"], 8 | "properties": { 9 | "photo": ["http://example.com/images/photo.gif"], 10 | "name": ["Crepes on Cole"], 11 | "url": ["http://example.com/crepeoncole"] 12 | } 13 | }], 14 | "rating": ["5"] 15 | } 16 | }], 17 | "rels": {}, 18 | "rel-urls": {} 19 | } -------------------------------------------------------------------------------- /tests/microformats-mixed/h-card/mixedproperties.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | Mozilla Foundation 4 | 5 |

6 |

7 | 665 3rd St. 8 | Suite 207 9 | San Francisco, 10 | CA 11 | 94107 12 | U.S.A. 13 |

14 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hreview-aggregate/justahyperlink.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review-aggregate"], 4 | "properties": { 5 | "item": [{ 6 | "value": "Mediterranean Wraps", 7 | "type": ["h-item"], 8 | "properties": { 9 | "name": ["Mediterranean Wraps"], 10 | "url": ["http://example.com/mediterraneanwraps"] 11 | } 12 | }], 13 | "rating": ["4.5"], 14 | "count": ["6"] 15 | } 16 | }], 17 | "rels": {}, 18 | "rel-urls": {} 19 | } 20 | -------------------------------------------------------------------------------- /tests/microformats-v1/hcalendar/combining.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | IndieWebCamp 2012 4 | 5 | from 6 | to at 7 | 8 | Geoloqi, 9 | 10 | 920 SW 3rd Ave. Suite 400, 11 | Portland, 12 | OR 13 | 14 | 15 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hcard/email.html: -------------------------------------------------------------------------------- 1 |
2 | John Doe 3 | 14 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hresume/skill.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | Tim Berners-Lee, 4 | invented the World Wide Web. 5 |

6 | Skills: 7 | 12 |
-------------------------------------------------------------------------------- /tests/microformats-v1/includes/hyperlink.html: -------------------------------------------------------------------------------- 1 |
2 | Ben Ward 3 | Twitter 4 |
5 |
6 | Dan Webb 7 | Twitter 8 |
9 | 10 |
11 |

Twitter

12 |

13 | 1355 Market St, 14 | San Francisco, 15 | CA 16 | 94103 17 |

18 |
-------------------------------------------------------------------------------- /tests/microformats-v2-unit/value/value-e.html: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 |
NotPartOfTest
14 |
Valid
15 |
16 | -------------------------------------------------------------------------------- /tests/microformats-v2/mixed/vendorprefix.html: -------------------------------------------------------------------------------- 1 |

Valid

2 |

Invalid

3 |

Invalid

4 |

Invalid

5 |

Invalid

6 | 7 |

Valid

8 |

Invalid

9 |

Invalid

10 |

Invalid

11 | 12 |

Valid

13 |

Valid

14 | 15 |

Invalid

16 |

Invalid

17 | 18 |

Valid

19 | -------------------------------------------------------------------------------- /tests/microformats-v1/hresume/education.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Tim Berners-Lee

4 |

Director of the World Wide Web Foundation

5 |
6 |

Invented the World Wide Web.


7 |

8 | The Queen's College, Oxford University, 9 | BA Hons (I) Physics 10 | – 11 | 12 |

13 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-resume/education.html: -------------------------------------------------------------------------------- 1 |
2 |

Tim Berners-Lee

3 |
4 |

Director of the World Wide Web Foundation

5 |
6 |

Invented the World Wide Web.


7 |

8 | The Queen's College, Oxford University, 9 | BA Hons (I) Physics 10 | – 11 | 12 |

13 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-review-aggregate/justahyperlink.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review-aggregate"], 4 | "properties": { 5 | "item": [{ 6 | "value": "Mediterranean Wraps", 7 | "type": ["h-item"], 8 | "properties": { 9 | "name": ["Mediterranean Wraps"] 10 | } 11 | }], 12 | "summary": ["Customers flock to this small restaurant for their \n tasty falafel and shawerma wraps and welcoming staff."], 13 | "rating": ["4.5"] 14 | } 15 | }], 16 | "rels": {}, 17 | "rel-urls": {} 18 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hcalendar/ampm.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["The 4th Microformat party"], 6 | "start": [ 7 | "2009-06-26 19:00:00", 8 | "2009-06-26 07:00:00", 9 | "2009-06-26 19:00", 10 | "2009-06-26 19:00", 11 | "2009-06-26 19:00", 12 | "2009-06-26 19:00", 13 | "2009-06-26 19:00", 14 | "2009-06-26 19:00", 15 | "2009-06-26 07:00" 16 | ] 17 | } 18 | }], 19 | "rels": {}, 20 | "rel-urls": {} 21 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hcalendar/attendees.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | CPJ Online Press Freedom Summit 4 | () in 5 | San Francisco. 6 | Attendees: 7 |
    8 |
  • Brian Warner
  • 9 |
  • Kyle Machulis
  • 10 |
  • Tantek Çelik
  • 11 |
  • Sid Sutter
  • 12 |
13 |
14 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-event/ampm.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["The 4th Microformat party"], 6 | "start": [ 7 | "2009-06-26 19:00:00", 8 | "2009-06-26 07:00:00", 9 | "2009-06-26 19:00", 10 | "2009-06-26 19:00", 11 | "2009-06-26 19:00", 12 | "2009-06-26 19:00", 13 | "2009-06-26 19:00", 14 | "2009-06-26 19:00", 15 | "2009-06-26 07:00" 16 | ] 17 | } 18 | }], 19 | "rels": {}, 20 | "rel-urls": {} 21 | } -------------------------------------------------------------------------------- /tests/microformats-v1/includes/hcarditemref.html: -------------------------------------------------------------------------------- 1 |
2 | Brendan Eich 3 |
4 |
5 | Mitchell Baker 6 |
7 | 8 |

Mozilla

9 |

10 | 665 3rd St. 11 | Suite 207 12 | San Francisco, 13 | CA 14 | 94107 15 | U.S.A. 16 |

-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/extendeddescription.html: -------------------------------------------------------------------------------- 1 |
2 | photo of Mitchell 3 |

4 | Mitchell Baker 5 | (@MitchellBaker) 6 | Mozilla Foundation 7 |

8 |

Mitchell is responsible for setting the direction and scope of the Mozilla Foundation and its activities.

9 |

Strategy and Leadership

10 |
-------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Glenn Jones", 3 | "name": "microformat-tests", 4 | "description": "A microformat 2 testsuite", 5 | "version": "0.1.26", 6 | "license": "CC0-1.0", 7 | "repository": { 8 | "type": "git", 9 | "url": "git://github.com/microformats/tests.git" 10 | }, 11 | "engines": { 12 | "node": ">= 0.12.x" 13 | }, 14 | "main": "interface.js", 15 | "scripts": { 16 | "test": "echo \"Error: no test specified\" && exit 1" 17 | }, 18 | "devDependencies": { 19 | "blipp": "2.1.x", 20 | "boom": "2.7.x", 21 | "good": "6.1.x", 22 | "good-console": "5.0.x", 23 | "handlebars": "4.0.x", 24 | "hapi": "11.1.x", 25 | "joi": "6.4.x" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /tests/microformats-v2/mixed/vendorprefixproperty.html: -------------------------------------------------------------------------------- 1 |
2 |

Valid

3 |

Invalid

4 |

Invalid

5 |

Invalid

6 |

Invalid

7 | 8 |

Valid

9 |

Invalid

10 |

Invalid

11 |

Invalid

12 | 13 |

Valid

14 |

Valid

15 | 16 |

Invalid

17 |

Invalid

p 18 |

Valid

19 |
20 | -------------------------------------------------------------------------------- /tests/microformats-mixed/h-card/mixedproperties.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["Mozilla Foundation"], 6 | "org": ["Mozilla Foundation"], 7 | "url": ["http://mozilla.org/"] 8 | }, 9 | "children" : [{ 10 | "type": ["h-adr"], 11 | "properties": { 12 | "street-address": ["665 3rd St."], 13 | "extended-address": ["Suite 207"], 14 | "locality": ["San Francisco"], 15 | "region": ["CA"], 16 | "postal-code": ["94107"] 17 | } 18 | }] 19 | }], 20 | "rels": {}, 21 | "rel-urls": {} 22 | } 23 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/baseurl.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": [ 4 | "h-card" 5 | ], 6 | "properties": { 7 | "name": [ 8 | "Mitchell Baker" 9 | ], 10 | "url": ["http://blog.lizardwrangler.com/"], 11 | "org": [{ 12 | "value": "Mozilla Foundation", 13 | "type": [ 14 | "h-card" 15 | ], 16 | "properties": { 17 | "name": ["Mozilla Foundation"], 18 | "url": ["http://example.org/bios/mitchell-baker/"] 19 | } 20 | }], 21 | "photo": ["http://example.org/images/photo.gif"] 22 | } 23 | }], 24 | "rels": {}, 25 | "rel-urls": {} 26 | } 27 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-review-aggregate/hevent.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review-aggregate"], 4 | "properties": { 5 | "item": [{ 6 | "value": "Fullfrontal", 7 | "type": ["h-event"], 8 | "properties": { 9 | "name": ["Fullfrontal"], 10 | "description": ["A one day JavaScript Conference held in Brighton"], 11 | "start": ["2012-11-09"] 12 | } 13 | }], 14 | "rating": ["9.9"], 15 | "average": ["9.9"], 16 | "best": ["10"], 17 | "count": ["62"] 18 | } 19 | }], 20 | "rels": {}, 21 | "rel-urls": {} 22 | } -------------------------------------------------------------------------------- /tests/microformats-v2/mixed/id.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "id": "first", 5 | "type": [ 6 | "h-card" 7 | ], 8 | "properties": { 9 | "name": [ 10 | "Luca Sparrow" 11 | ] 12 | } 13 | }, 14 | { 15 | "id": "Second:but-with5cool_extras.", 16 | "type": [ 17 | "h-card" 18 | ], 19 | "properties": { 20 | "name": [ 21 | "Selin Holden" 22 | ] 23 | } 24 | }, 25 | { 26 | "type": [ 27 | "h-card" 28 | ], 29 | "properties": { 30 | "name": [ 31 | "Danyaal Rasmussen" 32 | ] 33 | } 34 | } 35 | ], 36 | "rels": {}, 37 | "rel-urls": {} 38 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hcalendar/time.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["The 4th Microformat party"], 6 | "start": [ 7 | "2009-06-26 19:00:00-0800", 8 | "2009-06-26 19:00:00-0800", 9 | "2009-06-26 19:00:00+0800", 10 | "2009-06-26 19:00:00Z", 11 | "2009-06-26 19:00:00", 12 | "2009-06-26 19:00-0800", 13 | "2009-06-26 19:00+0800", 14 | "2009-06-26 19:00Z", 15 | "2009-06-26 19:00" 16 | ], 17 | "end": ["2013-034"] 18 | } 19 | }], 20 | "rels": {}, 21 | "rel-urls": {} 22 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hreview-aggregate/hcard.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Mediterranean Wraps

4 |

5 | 6 | 433 S California Ave, 7 | Palo Alto, 8 | CA - 9 | 10 | (650) 321-8189 11 |

12 |
13 |

14 | 9.2 out of 15 | 10 16 | based on 17 reviews 17 |

18 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hreview-aggregate/vevent.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review-aggregate"], 4 | "properties": { 5 | "item": [{ 6 | "value": "Fullfrontal", 7 | "type": ["h-event"], 8 | "properties": { 9 | "name": ["Fullfrontal"], 10 | "description": ["A one day JavaScript Conference held in Brighton"], 11 | "start": ["2012-11-09"] 12 | } 13 | }], 14 | "rating": ["9.9"], 15 | "average": ["9.9"], 16 | "best": ["10"], 17 | "count": ["62"] 18 | } 19 | }], 20 | "rels": {}, 21 | "rel-urls": {} 22 | } 23 | -------------------------------------------------------------------------------- /tests/microformats-v1/hresume/work.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |

Tim Berners-Lee

5 |

Director of the World Wide Web Foundation

6 |
7 |

Invented the World Wide Web.


8 |
9 |

Director

10 |

World Wide Web Foundation

11 |

12 | – Present 13 | 14 |

15 |
16 |
-------------------------------------------------------------------------------- /tests/microformats-v2-unit/names/tentative-names-properties-multi.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": [ 5 | "h-1-test" 6 | ], 7 | "properties": { 8 | "a": [ 9 | "Duplicated", 10 | "Duplicated" 11 | ] 12 | } 13 | }, 14 | { 15 | "type": [ 16 | "h-2-test" 17 | ], 18 | "properties": { 19 | "b": [ 20 | "2000-01-01 00:00:00+00:00", 21 | "2000-01-01 00:00:00+00:00" 22 | ] 23 | } 24 | } 25 | ], 26 | "rels": {}, 27 | "rel-urls": {} 28 | } 29 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-resume/affiliation.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": ["h-resume"], 5 | "properties": { 6 | "name": ["Tim Berners-Lee"], 7 | "summary": ["invented the World Wide Web"], 8 | "affiliation": [ 9 | { 10 | "type": ["h-card"], 11 | "value": "W3C", 12 | "properties": { 13 | "name": ["W3C"], 14 | "photo": [ 15 | { 16 | "alt": "W3C", 17 | "value": "http://www.w3.org/Icons/WWW/w3c_home_nb.png" 18 | } 19 | ] 20 | } 21 | } 22 | ] 23 | } 24 | } 25 | ], 26 | "rels": {}, 27 | "rel-urls": {} 28 | } 29 | -------------------------------------------------------------------------------- /tests/microformats-v2/rel/xfn-elsewhere.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/microformats-v1/hcard/single.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["John Doe"], 6 | "given-name": ["John"], 7 | "sort-string": ["John"], 8 | "bday": ["2000-01-01T00:00:00-08:00"], 9 | "role": ["Designer"], 10 | "geo": [{ 11 | "value": "30.267991;-97.739568", 12 | "type": ["h-geo"], 13 | "properties": {} 14 | }], 15 | "tz": ["-05:00"], 16 | "uid": ["http://example.com/profiles/johndoe"], 17 | "class": ["Public"], 18 | "rev": ["2008-01-01T13:45:00"] 19 | } 20 | }], 21 | "rels": {}, 22 | "rel-urls": {} 23 | } -------------------------------------------------------------------------------- /tests/microformats-mixed/h-resume/mixedroots.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |

Tim Berners-Lee

5 |

Director of the World Wide Web Foundation

6 |
7 |

Invented the World Wide Web.


8 |
9 |

Director

10 |

World Wide Web Foundation

11 |

12 | – Present 13 | 14 |

15 |
16 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-resume/work.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Tim Berners-Lee

4 |
5 |

Director of the World Wide Web Foundation

6 |
7 |

Invented the World Wide Web.


8 |
9 |

Director

10 |

World Wide Web Foundation

11 |

12 | – Present 13 | 14 |

15 |
16 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/relativeurls.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": [ 4 | "h-card" 5 | ], 6 | "properties": { 7 | "name": [ 8 | "Mitchell Baker" 9 | ], 10 | "url": ["http://blog.lizardwrangler.com/"], 11 | "org": [ 12 | { 13 | "value": "Mozilla Foundation", 14 | "type": [ 15 | "h-card" 16 | ], 17 | "properties": { 18 | "name": ["Mozilla Foundation"], 19 | "url": ["http://example.com/bios/mitchell-baker/"] 20 | } 21 | } 22 | ], 23 | "photo": ["http://example.com/bios/mitchell-baker/picture.jpeg"] 24 | } 25 | }], 26 | "rels": {}, 27 | "rel-urls": {} 28 | } 29 | -------------------------------------------------------------------------------- /tests/microformats-v2/mixed/vendorprefix.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": ["h-card"], 5 | "properties": { 6 | "name": ["Valid"] 7 | } 8 | }, 9 | { 10 | "type": ["h-vendor-card"], 11 | "properties": { 12 | "name": ["Valid"] 13 | } 14 | }, 15 | { 16 | "type": ["h-8-vendor-card"], 17 | "properties": { 18 | "name": ["Valid"] 19 | } 20 | }, 21 | { 22 | "type": ["h-8to8-vendor-card"], 23 | "properties": { 24 | "name": ["Valid"] 25 | } 26 | }, 27 | { 28 | "type": ["h-super-extra-long-microformat-type"], 29 | "properties": { 30 | "name": ["Valid"] 31 | } 32 | } 33 | ], 34 | "rels": {}, 35 | "rel-urls": {} 36 | } 37 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/impliedname.html: -------------------------------------------------------------------------------- 1 |
2 |

This should imply a p-name

3 |
4 | 5 |
6 |

This should not imply a p-name since it has an p-* property.

7 |
8 | 9 |
10 |

This should not imply a p-name since it has an e-* property.

11 |
12 | 13 |
14 |
15 |

I really like Microformats

16 |
17 |

This should not imply a p-name since it has a nested microformat.

18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/extendeddescription.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": ["h-card"], 5 | "properties": { 6 | "photo": [ 7 | { 8 | "alt": "photo of Mitchell", 9 | "value": "http://blog.mozilla.org/press/files/2012/04/mitchell-baker.jpg" 10 | } 11 | ], 12 | "url": ["http://blog.lizardwrangler.com/", "https://twitter.com/MitchellBaker"], 13 | "name": ["Mitchell Baker"], 14 | "org": ["Mozilla Foundation"], 15 | "note": [ 16 | "Mitchell is responsible for setting the direction and scope of the Mozilla Foundation and its activities." 17 | ], 18 | "category": ["Strategy", "Leadership"] 19 | } 20 | } 21 | ], 22 | "rels": {}, 23 | "rel-urls": {} 24 | } 25 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/urlincontent.html: -------------------------------------------------------------------------------- 1 |
2 |

Expanding URLs within HTML content

3 | 13 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-event/time.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["The 4th Microformat party"], 6 | "start": [ 7 | "2009-06-26 19:00:00-0800", 8 | "2009-06-26 19:00:00-0800", 9 | "2009-06-26 19:00:00+0800", 10 | "2009-06-26 19:00:00Z", 11 | "2009-06-26 19:00:00", 12 | "2009-06-26 19:00-0800", 13 | "2009-06-26 19:00+0800", 14 | "2009-06-26 19:00Z", 15 | "2009-06-26 19:00" 16 | ], 17 | "end": [ 18 | "2013-034", 19 | "2013-06-27 15:34" 20 | ] 21 | } 22 | }], 23 | "rels": {}, 24 | "rel-urls": {} 25 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hresume/affiliation.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-resume"], 4 | "properties": { 5 | "contact": [{ 6 | "value": "Tim Berners-Lee", 7 | "type": ["h-card"], 8 | "properties": { 9 | "name": ["Tim Berners-Lee"] 10 | } 11 | }], 12 | "summary": ["invented the World Wide Web"], 13 | "affiliation": [{ 14 | "value": "W3C", 15 | "type": ["h-card"], 16 | "properties": { 17 | "name": ["W3C"], 18 | "photo": ["http://www.w3.org/Icons/WWW/w3c_home_nb.png"] 19 | } 20 | }] 21 | } 22 | }], 23 | "rels": {}, 24 | "rel-urls": {} 25 | } 26 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-event/dates.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": [ 5 | "h-event" 6 | ], 7 | "properties": { 8 | "name": [ 9 | "The 4th Microformat party" 10 | ], 11 | "start": [ 12 | "2009-06-26T19:00-08:00", 13 | "2009-06-26T19:00-08", 14 | "2009-06-26T19:00-0800", 15 | "2009-06-26T19:00+0800", 16 | "2009-06-26T19:00+08:00", 17 | "2009-06-26T19:00Z", 18 | "2009-06-26t19:00-08:00", 19 | "2009-06-26 19:00:00-08:00" 20 | ] 21 | } 22 | } 23 | ], 24 | "rels": {}, 25 | "rel-urls": {} 26 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-resume/contact.html: -------------------------------------------------------------------------------- 1 |
2 |

Tim Berners-Lee

3 |

Invented the World Wide Web.


4 |
5 |

MIT

6 |

7 | 32 Vassar Street, 8 | Room 32-G524, 9 | Cambridge, 10 | MA 11 | 02139, 12 | USA. 13 |

14 |

Tel:+1 (617) 253 5702

15 |

Email:timbl@w3.org

16 |
17 |
-------------------------------------------------------------------------------- /tests/microformats-v2-unit/properties/properties-e.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": [ 5 | "h-test" 6 | ], 7 | "properties": { 8 | "name": [ 9 | "http://example.test/NotPartOfTest" 10 | ], 11 | "photo": [ 12 | "http://example.test/NotPartOfTest" 13 | ], 14 | "url": [ 15 | "http://example.test/NotPartOfTest" 16 | ], 17 | "test": [ 18 | { 19 | "html": "Valid", 20 | "value": "Valid" 21 | } 22 | ] 23 | } 24 | } 25 | ], 26 | "rels": {}, 27 | "rel-urls": {} 28 | } 29 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-review-aggregate/simpleproperties.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Mediterranean Wraps

4 |

5 | 433 S California Ave, 6 | Palo Alto, 7 | CA - 8 | (650) 321-8189 9 |

10 |
11 | Customers flock to this small restaurant for their 12 | tasty falafel and shawerma wraps and welcoming staff. 13 | 14 | 9.2 out of 15 | 10 16 | based on 17 reviews 17 | 18 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-event/dates.html: -------------------------------------------------------------------------------- 1 |
2 |

The 4th Microformat party will be on:

3 |
    4 |
  • 5 |
  • 6 |
  • 7 |
  • 8 |
  • 9 |
  • 10 |
  • 11 |
  • 12 |
13 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hresume/contact.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Tim Berners-Lee

4 |

MIT

5 |

6 | 32 Vassar Street, 7 | Room 32-G524, 8 | Cambridge, 9 | MA 10 | 02139, 11 | USA. 12 | (Work) 13 |

14 |

Tel:+1 (617) 253 5702

15 |

Email:

16 |
17 |

Invented the World Wide Web.

18 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/impliedvalue-nested.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-entry"], 4 | "properties": { 5 | "in-reply-to": [{ 6 | "type": ["h-cite"], 7 | "properties": { 8 | "name": ["Example Post"], 9 | "url": ["http://example.com/post"], 10 | "author": [{ 11 | "type": ["h-card"], 12 | "properties": { 13 | "url": ["http://example.com"], 14 | "name": ["Example Author"] 15 | }, 16 | "value": "Example Author" 17 | }] 18 | }, 19 | "value": "http://example.com/post" 20 | }] 21 | } 22 | }], 23 | "rels": {}, 24 | "rel-urls": {} 25 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-event/combining.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["IndieWebCamp 2012"], 6 | "url": ["http://indiewebcamp.com/2012"], 7 | "start": ["2012-06-30"], 8 | "end": ["2012-07-01"], 9 | "location": [{ 10 | "value": "Geoloqi", 11 | "type": ["h-card"], 12 | "properties": { 13 | "name": ["Geoloqi"], 14 | "org": ["Geoloqi"], 15 | "url": ["http://geoloqi.com/"], 16 | "street-address": ["920 SW 3rd Ave. Suite 400"], 17 | "locality": ["Portland"], 18 | "region": ["Oregon"] 19 | } 20 | }] 21 | } 22 | }], 23 | "rels": {}, 24 | "rel-urls": {} 25 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-event/dt-property.html: -------------------------------------------------------------------------------- 1 | 2 | The party will be on 3 | 4 |

5 | 6 | March 14th 2013 7 |

8 |

9 | , from 10 | 07:00:00am 11 |

12 | 13 |

14 | 15 | 16 | Just added, 17 | Removed 18 |

19 | June 29 20 | 21 |

2013-07-02

22 | 23 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hcard/single.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
John Doe
4 |
Birthday: January 1st, 2000
5 |
Role: Designer
6 |
Location: Brighton
7 |
Time zone: Eastern Standard Time
8 | 9 |
Profile details: 10 |
Profile id: http://example.com/profiles/johndoe
11 |
Details are: Public
12 |
Last updated: January 1st, 2008 - 13:45
13 |
14 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/p-property.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | John 5 | P 6 | Doe 7 | 8 | 9 | 10 | 11 |
BSc
12 |
BA 13 | 14 | 15 | PHD 16 | company logos 17 | 18 | Madgex 19 | Mozilla 20 | 21 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-resume/contact.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-resume"], 4 | "properties": { 5 | "name": ["Tim Berners-Lee"], 6 | "summary": ["Invented the World Wide Web."], 7 | "contact": [{ 8 | "value": "MIT", 9 | "type": ["h-card"], 10 | "properties": { 11 | "name": ["MIT"], 12 | "street-address": ["32 Vassar Street"], 13 | "extended-address": ["Room 32-G524"], 14 | "locality": ["Cambridge"], 15 | "region": ["MA"], 16 | "postal-code": ["02139"], 17 | "country-name": ["USA"], 18 | "tel": ["+1 (617) 253 5702"], 19 | "email": ["mailto:timbl@w3.org"] 20 | } 21 | }] 22 | } 23 | }], 24 | "rels": {}, 25 | "rel-urls": {} 26 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-review-aggregate/simpleproperties.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review-aggregate"], 4 | "properties": { 5 | "item": [{ 6 | "value": "Mediterranean Wraps", 7 | "type": ["h-card"], 8 | "properties": { 9 | "name": ["Mediterranean Wraps"], 10 | "street-address": ["433 S California Ave"], 11 | "locality": ["Palo Alto"], 12 | "region": ["CA"], 13 | "tel": ["(650) 321-8189"] 14 | } 15 | }], 16 | "summary": ["Customers flock to this small restaurant for their \n tasty falafel and shawerma wraps and welcoming staff."], 17 | "rating": ["9.2"], 18 | "average": ["9.2"], 19 | "best": ["10"], 20 | "count": ["17"] 21 | } 22 | }], 23 | "rels": {}, 24 | "rel-urls": {} 25 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/u-property.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": ["h-entry"], 5 | "properties": { 6 | "name": ["microformats.org at 7"], 7 | "url": [ 8 | "http://microformats.org/", 9 | "http://microformats.org/2012/06/25/microformats-org-at-7", 10 | "http://microformats.org/2012/06/25/microformats-org-at-7", 11 | "http://microformats.org/", 12 | "http://microformats.org/wiki/microformats2-parsing", 13 | "http://microformats.org/wiki/value-class-pattern", 14 | "http://microformats.org/wiki/", 15 | "http://microformats.org/discuss" 16 | ], 17 | "photo": [ 18 | { 19 | "alt": "company logos", 20 | "value": "http://example.com/images/logo.gif" 21 | }, 22 | "http://example.com/posterimage.jpg" 23 | ] 24 | } 25 | } 26 | ], 27 | "rels": {}, 28 | "rel-urls": {} 29 | } 30 | -------------------------------------------------------------------------------- /tests/microformats-v2/rel/duplicate-rels.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | Asides 5 | 6 | 8 | 9 | Asides 10 | 11 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-product/simpleproperties.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Raspberry Pi

4 | 5 |

The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.

6 | More info about the Raspberry Pi 7 |

£29.95

8 |

4.5 out of 5

9 |

Categories: Computer, Education

10 |
-------------------------------------------------------------------------------- /tests/microformats-v2/rel/rel-urls.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [], 3 | "rels": { 4 | "author": [ "http://example.com/a", "http://example.com/b" ], 5 | "in-reply-to": [ "http://example.com/1", "http://example.com/2" ], 6 | "home": [ "http://example.com/fr" ], 7 | "alternate": [ "http://example.com/fr" ] 8 | }, 9 | "rel-urls": { 10 | "http://example.com/a": { 11 | "rels": ["author"], 12 | "text": "author a" 13 | }, 14 | "http://example.com/b": { 15 | "rels": ["author"], 16 | "text": "author b" 17 | }, 18 | "http://example.com/1": { 19 | "rels": ["in-reply-to"], 20 | "text": "post 1" 21 | }, 22 | "http://example.com/2": { 23 | "rels": ["in-reply-to"], 24 | "text": "post 2" 25 | }, 26 | "http://example.com/fr": { 27 | "rels": ["alternate", "home"], 28 | "media": "handheld", 29 | "hreflang": "fr", 30 | "text": "French mobile homepage" 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-adr/lettercase.html: -------------------------------------------------------------------------------- 1 |

2 | Bricklayer's Arms 3 | 3 Charlotte Road, 4 | City of London, 5 | EC2A 3PE, 6 | UK 7 |

8 |

9 | Bricklayer's Arms 10 | 3 Charlotte Road, 11 | City of London, 12 | EC2A 3PE, 13 | UK 14 |

15 |

16 | Bricklayer's Arms 17 | 3 Charlotte Road, 18 | City of London, 19 | EC2A 3PE, 20 | UK 21 |

-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/impliedphoto.html: -------------------------------------------------------------------------------- 1 | Jane Doe 2 | Jane Doe 3 | 4 |
Jane Doe
5 |
Jane Doe
6 | 7 |
Jane Doe
8 |
Jane Doe
9 | 10 | 11 |
Jane DoeJane Doe
12 |
Jane Doe
13 |
John Doe
14 | 15 | -------------------------------------------------------------------------------- /tests/microformats-v1/hproduct/simpleproperties.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Raspberry Pi

4 | 5 |

The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.

6 | More info about the Raspberry Pi 7 |

£29.95

8 |

4.5 out of 5

9 |

Categories: 10 | , 11 | 12 |

13 |
-------------------------------------------------------------------------------- /tests/microformats-v1/includes/object.html: -------------------------------------------------------------------------------- 1 |
2 | HTML5 & CSS3 latest features in action! - 3 | David Rousset - 4 | 5 | 6 |
7 |
8 | Building High-Performing JavaScript for Modern Engines - 9 | John-David Dalton and 10 | Amanda Silver - 11 | 12 | 13 |
14 | 15 | 16 |
17 |

Build Conference

18 |

19 | Redmond, 20 | Washington, 21 | USA 22 |

23 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/summarycontent.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

microformats.org at 7

4 |
5 |

Last week the microformats.org community 6 | celebrated its 7th birthday at a gathering hosted by Mozilla in 7 | San Francisco and recognized accomplishments, challenges, and 8 | opportunities.

9 | 10 |

The microformats tagline “humans first, machines second” 11 | forms the basis of many of our 12 | principles, and 13 | in that regard, we’d like to recognize a few people and 14 | thank them for their years of volunteer service

15 |
16 |

Updated 17 | by 18 | Tantek 19 |

20 |
-------------------------------------------------------------------------------- /tests/microformats-v1/includes/heventitemref.html: -------------------------------------------------------------------------------- 1 |
2 | Monetizing Android Apps - spaekers: 3 | Chrix Finne, 4 | Kenneth Lui - 5 | 6 | Room 10 7 | 8 |
9 |
10 | New Low-Level Media APIs in Android - spaekers: 11 | Dave Burke - 12 | 13 | Room 11 14 | 15 |
16 | 17 |

18 | Session 01 is between: 19 | to 20 | 21 |

22 |

23 | Moscone Center, 24 | San Francisco 25 |

-------------------------------------------------------------------------------- /tests/microformats-v1/hentry/summarycontent.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

microformats.org at 7

4 |
5 |

Last week the microformats.org community 6 | celebrated its 7th birthday at a gathering hosted by Mozilla in 7 | San Francisco and recognized accomplishments, challenges, and 8 | opportunities.

9 | 10 |

The microformats tagline “humans first, machines second” 11 | forms the basis of many of our 12 | principles, and 13 | in that regard, we’d like to recognize a few people and 14 | thank them for their years of volunteer service

15 |
16 |

Updated 17 | by 18 | Tantek 19 |

20 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hresume/education.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-resume"], 4 | "properties": { 5 | "contact": [{ 6 | "value": "Tim Berners-Lee", 7 | "type": ["h-card"], 8 | "properties": { 9 | "name": ["Tim Berners-Lee"], 10 | "job-title": ["Director of the World Wide Web Foundation"] 11 | } 12 | }], 13 | "summary": ["Invented the World Wide Web."], 14 | "education": [{ 15 | "value": "The Queen's College, Oxford University", 16 | "type": ["h-card", "h-event"], 17 | "properties": { 18 | "name": ["The Queen's College, Oxford University"], 19 | "org": ["The Queen's College, Oxford University"], 20 | "description": ["BA Hons (I) Physics"], 21 | "start": ["1973-09"], 22 | "end": ["1976-06"] 23 | } 24 | }] 25 | } 26 | }], 27 | "rels": {}, 28 | "rel-urls": {} 29 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hresume/work.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-resume"], 4 | "properties": { 5 | "contact": [{ 6 | "value": "Tim Berners-Lee", 7 | "type": ["h-card"], 8 | "properties": { 9 | "name": ["Tim Berners-Lee"], 10 | "job-title": ["Director of the World Wide Web Foundation"] 11 | } 12 | }], 13 | "summary": ["Invented the World Wide Web."], 14 | "experience": [{ 15 | "value": "World Wide Web Foundation", 16 | "type": ["h-card", "h-event"], 17 | "properties": { 18 | "job-title": ["Director"], 19 | "name": ["World Wide Web Foundation"], 20 | "org": ["World Wide Web Foundation"], 21 | "url": ["http://www.webfoundation.org/"], 22 | "start": ["2009-01-18"], 23 | "duration": ["P2Y11M"] 24 | } 25 | }] 26 | } 27 | }], 28 | "rels": {}, 29 | "rel-urls": {} 30 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-resume/education.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-resume"], 4 | "properties": { 5 | "name": ["Tim Berners-Lee"], 6 | "contact": [{ 7 | "value": "Director of the World Wide Web Foundation", 8 | "type": ["h-card"], 9 | "properties": { 10 | "title": ["Director of the World Wide Web Foundation"] 11 | } 12 | }], 13 | "summary": ["Invented the World Wide Web."], 14 | "education": [{ 15 | "value": "The Queen's College, Oxford University", 16 | "type": ["h-card", "h-event"], 17 | "properties": { 18 | "name": ["The Queen's College, Oxford University"], 19 | "org": ["The Queen's College, Oxford University"], 20 | "description": ["BA Hons (I) Physics"], 21 | "start": ["1973-09"], 22 | "end": ["1976-06"] 23 | } 24 | }] 25 | } 26 | }], 27 | "rels": {}, 28 | "rel-urls": {} 29 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/impliedurlempty.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["Jane Doe"], 6 | "url": ["http://example.com/"] 7 | } 8 | }, 9 | { 10 | "type": ["h-card"], 11 | "properties": { 12 | "name": ["Jane Doe"], 13 | "url": ["http://example.com/"] 14 | } 15 | }, 16 | { 17 | "type": ["h-card"], 18 | "properties": { 19 | "name": ["Jane Doe"], 20 | "url": ["http://example.com/"] 21 | } 22 | }, 23 | { 24 | "type": ["h-card"], 25 | "properties": { 26 | "name": ["Jane Doe"], 27 | "url": ["http://example.com/"] 28 | } 29 | }, 30 | { 31 | "type": ["h-card"], 32 | "properties": {}, 33 | "children": [{ 34 | "type": ["h-card"], 35 | "properties": { 36 | "name": ["Jane Doe"], 37 | "url": ["http://example.com/"] 38 | } 39 | }] 40 | }], 41 | "rels": {}, 42 | "rel-urls": {} 43 | } 44 | -------------------------------------------------------------------------------- /tests/microformats-mixed/h-entry/mixedroots.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 11 |
Did you play 12 | @playmapattackat 13 | #realtimeconf? Here is some more info about how we built it! 14 | http://pdx.esri.com/blog/2013/10/17/introducting-mapattack/ 15 |
16 |
-------------------------------------------------------------------------------- /tests/microformats-mixed/h-resume/mixedroots.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-resume"], 4 | "properties": { 5 | "contact": [{ 6 | "value": "Tim Berners-Lee", 7 | "type": ["h-card"], 8 | "properties": { 9 | "name": ["Tim Berners-Lee"], 10 | "job-title": ["Director of the World Wide Web Foundation"] 11 | } 12 | }], 13 | "summary": ["Invented the World Wide Web."], 14 | "experience": [{ 15 | "value": "World Wide Web Foundation", 16 | "type": ["h-card", "h-event"], 17 | "properties": { 18 | "job-title": ["Director"], 19 | "name": ["World Wide Web Foundation"], 20 | "org": ["World Wide Web Foundation"], 21 | "url": ["http://www.webfoundation.org/"], 22 | "start": ["2009-01-18"], 23 | "duration": ["P2Y11M"] 24 | } 25 | }] 26 | } 27 | }], 28 | "rels": {}, 29 | "rel-urls": {} 30 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-resume/work.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-resume"], 4 | "properties": { 5 | "name": ["Tim Berners-Lee"], 6 | "contact": [{ 7 | "value": "Director of the World Wide Web Foundation", 8 | "type": ["h-card"], 9 | "properties": { 10 | "title": ["Director of the World Wide Web Foundation"] 11 | } 12 | }], 13 | "summary": ["Invented the World Wide Web."], 14 | "experience": [{ 15 | "value": "World Wide Web Foundation", 16 | "type": ["h-card", "h-event"], 17 | "properties": { 18 | "title": ["Director"], 19 | "name": ["World Wide Web Foundation"], 20 | "org": ["World Wide Web Foundation"], 21 | "url": ["http://www.webfoundation.org/"], 22 | "start": ["2009-01-18"], 23 | "duration": ["P2Y11M"] 24 | } 25 | }] 26 | } 27 | }], 28 | "rels": {}, 29 | "rel-urls": {} 30 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hresume/skill.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-resume"], 4 | "properties": { 5 | "contact": [{ 6 | "value": "Tim Berners-Lee", 7 | "type": ["h-card"], 8 | "properties": { 9 | "name": ["Tim Berners-Lee"] 10 | } 11 | }], 12 | "summary": ["invented the World Wide Web"], 13 | "skill": ["information systems", "advocacy", "leadership"] 14 | } 15 | }], 16 | "rels": { 17 | "tag": ["http://example.com/skills/informationsystems", "http://example.com/skills/advocacy", "http://example.com/skills/leadership"] 18 | }, 19 | "rel-urls": { 20 | "http://example.com/skills/informationsystems": { 21 | "text": "information systems", 22 | "rels": ["tag"] 23 | }, 24 | "http://example.com/skills/advocacy": { 25 | "text": "advocacy", 26 | "rels": ["tag"] 27 | }, 28 | "http://example.com/skills/leadership": { 29 | "text": "leadership", 30 | "rels": ["tag"] 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/impliedname.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-entry"], 4 | "properties": { 5 | "name": ["This should imply a p-name"] 6 | } 7 | }, { 8 | "type": ["h-entry"], 9 | "properties": { 10 | "content": ["This should not imply a p-name since it has an p-* property."] 11 | } 12 | }, { 13 | "type": ["h-entry"], 14 | "properties": { 15 | "content": [{ 16 | "value": "This should not imply a p-name since it has an e-* property.", 17 | "html": "

This should not imply a p-name since it has an e-* property.

" 18 | }] 19 | } 20 | }, { 21 | "type": ["h-entry"], 22 | "properties": { 23 | "like-of": [{ 24 | "value": "http://microformats.org/", 25 | "type": ["h-cite"], 26 | "properties": { 27 | "name": ["Microformats"], 28 | "url": ["http://microformats.org/"] 29 | } 30 | }] 31 | } 32 | }], 33 | "rels": {}, 34 | "rel-urls": {} 35 | } 36 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-card/impliedurl.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "name": ["Jane Doe"], 6 | "url": ["http://example.com/jane.html"] 7 | } 8 | }, 9 | { 10 | "type": ["h-card"], 11 | "properties": { 12 | "name": ["Jane Doe"], 13 | "url": ["http://example.com/jane.html"] 14 | } 15 | }, 16 | { 17 | "type": ["h-card"], 18 | "properties": { 19 | "name": ["Jane Doe"], 20 | "url": ["http://example.com/jane.html"] 21 | } 22 | }, 23 | { 24 | "type": ["h-card"], 25 | "properties": { 26 | "name": ["Jane Doe"], 27 | "url": ["http://example.com/jane.html"] 28 | } 29 | }, 30 | { 31 | "type": ["h-card"], 32 | "properties": {}, 33 | "children": [{ 34 | "type": ["h-card"], 35 | "properties": { 36 | "name": ["Jane Doe"], 37 | "url": ["http://example.com/jane.html"] 38 | } 39 | }] 40 | }], 41 | "rels": {}, 42 | "rel-urls": {} 43 | } 44 | -------------------------------------------------------------------------------- /tests/microformats-v1/hcalendar/combining.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["IndieWebCamp 2012"], 6 | "url": ["http://indiewebcamp.com/2012"], 7 | "start": ["2012-06-30"], 8 | "end": ["2012-07-01"], 9 | "location": [{ 10 | "value": "Geoloqi", 11 | "type": ["h-card"], 12 | "properties": { 13 | "name": ["Geoloqi"], 14 | "org": ["Geoloqi"], 15 | "url": ["http://geoloqi.com/"], 16 | "adr": [{ 17 | "value": "920 SW 3rd Ave. Suite 400, \n Portland, \n OR", 18 | "type": ["h-adr"], 19 | "properties": { 20 | "street-address": ["920 SW 3rd Ave. Suite 400"], 21 | "locality": ["Portland"], 22 | "region": ["Oregon"] 23 | } 24 | }] 25 | } 26 | }] 27 | } 28 | }], 29 | "rels": {}, 30 | "rel-urls": {} 31 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hreview-aggregate/hcard.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review-aggregate"], 4 | "properties": { 5 | "item": [{ 6 | "value": "Mediterranean Wraps", 7 | "type": ["h-card"], 8 | "properties": { 9 | "name": ["Mediterranean Wraps"], 10 | "org": ["Mediterranean Wraps"], 11 | "adr": [{ 12 | "value": "433 S California Ave, \n Palo Alto, \n CA", 13 | "type": ["h-adr"], 14 | "properties": { 15 | "street-address": ["433 S California Ave"], 16 | "locality": ["Palo Alto"], 17 | "region": ["CA"] 18 | } 19 | }], 20 | "tel": ["(650) 321-8189"] 21 | } 22 | }], 23 | "rating": ["9.2"], 24 | "average": ["9.2"], 25 | "best": ["10"], 26 | "count": ["17"] 27 | } 28 | }], 29 | "rels": {}, 30 | "rel-urls": {} 31 | } 32 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-feed/implied-title.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | microformats blog 5 | 6 | 7 |
8 | 9 |
10 |

microformats.org at 7

11 |
12 |

Last week the microformats.org community 13 | celebrated its 7th birthday at a gathering hosted by Mozilla in 14 | San Francisco and recognized accomplishments, challenges, and 15 | opportunities.

16 | 17 |

The microformats tagline “humans first, machines second” 18 | forms the basis of many of our 19 | principles, and 20 | in that regard, we’d like to recognize a few people and 21 | thank them for their years of volunteer service

22 |
23 |

Updated 24 | 25 |

26 |
27 | 28 |
29 | 30 | -------------------------------------------------------------------------------- /tests/microformats-v1/hcalendar/attendees.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["CPJ Online Press Freedom Summit"], 6 | "start": ["2012-10-10"], 7 | "location": ["San Francisco"], 8 | "attendee": [{ 9 | "value": "Brian Warner", 10 | "type": ["h-card"], 11 | "properties": { 12 | "name": ["Brian Warner"] 13 | } 14 | }, { 15 | "value": "Kyle Machulis", 16 | "type": ["h-card"], 17 | "properties": { 18 | "name": ["Kyle Machulis"] 19 | } 20 | }, { 21 | "value": "Tantek Çelik", 22 | "type": ["h-card"], 23 | "properties": { 24 | "name": ["Tantek Çelik"] 25 | } 26 | }, { 27 | "value": "Sid Sutter", 28 | "type": ["h-card"], 29 | "properties": { 30 | "name": ["Sid Sutter"] 31 | } 32 | }] 33 | } 34 | }], 35 | "rels": {}, 36 | "rel-urls": {} 37 | } -------------------------------------------------------------------------------- /tests/microformats-v2-unit/names/names-properties-multi.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": [ 5 | "h-1-test" 6 | ], 7 | "properties": { 8 | "a": [ 9 | "Valid" 10 | ], 11 | "b": [ 12 | "Valid" 13 | ] 14 | } 15 | }, 16 | { 17 | "type": [ 18 | "h-2-test" 19 | ], 20 | "properties": { 21 | "c": [ 22 | "Valid" 23 | ], 24 | "d": [ 25 | "Valid" 26 | ], 27 | "e": [ 28 | "Valid" 29 | ], 30 | "f": [ 31 | "Valid" 32 | ] 33 | } 34 | }, 35 | { 36 | "type": [ 37 | "h-3-test" 38 | ], 39 | "properties": { 40 | "g": [ 41 | "Valid 1", 42 | "Valid 2" 43 | ] 44 | } 45 | } 46 | ], 47 | "rels": {}, 48 | "rel-urls": {} 49 | } 50 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-event/attendees.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "name": ["CPJ Online Press Freedom Summit"], 6 | "start": ["2012-10-10"], 7 | "location": ["San Francisco"], 8 | "attendee": [{ 9 | "value": "Brian Warner", 10 | "type": ["h-card"], 11 | "properties": { 12 | "name": ["Brian Warner"] 13 | } 14 | }, { 15 | "value": "Kyle Machulis", 16 | "type": ["h-card"], 17 | "properties": { 18 | "name": ["Kyle Machulis"] 19 | } 20 | }, { 21 | "value": "Tantek Çelik", 22 | "type": ["h-card"], 23 | "properties": { 24 | "name": ["Tantek Çelik"] 25 | } 26 | }, { 27 | "value": "Sid Sutter", 28 | "type": ["h-card"], 29 | "properties": { 30 | "name": ["Sid Sutter"] 31 | } 32 | }] 33 | } 34 | }], 35 | "rels": {}, 36 | "rel-urls": {} 37 | } -------------------------------------------------------------------------------- /tests/microformats-v1/includes/heventitemref.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "location": [{ 6 | "value": "Room 10\n \n Moscone Center, \n San Francisco", 7 | "type": ["h-adr"], 8 | "properties": { 9 | "extended-address": ["Room 10", "Moscone Center"], 10 | "locality": ["San Francisco"] 11 | } 12 | }], 13 | "start": ["2012-06-27T15:45:00-0800"], 14 | "end": ["2012-06-27T16:45:00-0800"] 15 | } 16 | }, { 17 | "type": ["h-event"], 18 | "properties": { 19 | "location": [{ 20 | "value": "Room 11\n \n Moscone Center, \n San Francisco", 21 | "type": ["h-adr"], 22 | "properties": { 23 | "extended-address": ["Room 11", "Moscone Center"], 24 | "locality": ["San Francisco"] 25 | } 26 | }], 27 | "start": ["2012-06-27T15:45:00-0800"], 28 | "end": ["2012-06-27T16:45:00-0800"] 29 | } 30 | }], 31 | "rels": {}, 32 | "rel-urls": {} 33 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-feed/simple.html: -------------------------------------------------------------------------------- 1 |
2 |

Microformats blog

3 | Tantek 4 | permlink 5 | 6 | 7 |
8 |

microformats.org at 7

9 |
10 |

Last week the microformats.org community 11 | celebrated its 7th birthday at a gathering hosted by Mozilla in 12 | San Francisco and recognized accomplishments, challenges, and 13 | opportunities.

14 | 15 |

The microformats tagline “humans first, machines second” 16 | forms the basis of many of our 17 | principles, and 18 | in that regard, we’d like to recognize a few people and 19 | thank them for their years of volunteer service

20 |
21 |

Updated 22 | 23 |

24 |
25 | 26 |
-------------------------------------------------------------------------------- /tests/microformats-v2-unit/names/names-microformats-multi.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": [ 5 | "h-a" 6 | ], 7 | "properties": { 8 | "name": [ 9 | "Valid" 10 | ] 11 | } 12 | }, 13 | { 14 | "type": [ 15 | "h-aa", 16 | "h-bb", 17 | "h-cc" 18 | ], 19 | "properties": { 20 | "name": [ 21 | "Valid" 22 | ] 23 | } 24 | }, 25 | { 26 | "type": [ 27 | "h-aaa", 28 | "h-bbb", 29 | "h-ccc", 30 | "h-ddd" 31 | ], 32 | "properties": { 33 | "name": [ 34 | "Valid" 35 | ] 36 | } 37 | }, 38 | { 39 | "type": [ 40 | "h-1-test", 41 | "h-11-test", 42 | "h-2-test" 43 | ], 44 | "properties": { 45 | "name": [ 46 | "Valid" 47 | ] 48 | } 49 | } 50 | ], 51 | "rels": {}, 52 | "rel-urls": {} 53 | } 54 | -------------------------------------------------------------------------------- /tests/microformats-v1/hnews/minimum.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

microformats.org at 7

4 |
5 |

Last week the microformats.org community 6 | celebrated its 7th birthday at a gathering hosted by Mozilla in 7 | San Francisco and recognized accomplishments, challenges, and 8 | opportunities.

9 | 10 |

The microformats tagline “humans first, machines second” 11 | forms the basis of many of our 12 | principles, and 13 | in that regard, we’d like to recognize a few people and 14 | thank them for their years of volunteer service

15 |
16 |

Updated 17 | by 18 | Tantek 19 |

20 |
21 | 22 |

23 | microformats.org 24 |

25 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hresume/contact.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-resume"], 4 | "properties": { 5 | "contact": [{ 6 | "value": "Tim Berners-Lee", 7 | "type": ["h-card"], 8 | "properties": { 9 | "name": ["Tim Berners-Lee"], 10 | "org": ["MIT"], 11 | "adr": [{ 12 | "value": "32 Vassar Street, \n Room 32-G524, \n Cambridge, \n MA \n 02139, \n USA. \n (Work)", 13 | "type": ["h-adr"], 14 | "properties": { 15 | "street-address": ["32 Vassar Street"], 16 | "extended-address": ["Room 32-G524"], 17 | "locality": ["Cambridge"], 18 | "region": ["MA"], 19 | "postal-code": ["02139"], 20 | "country-name": ["USA"] 21 | } 22 | }], 23 | "tel": ["+1 (617) 253 5702"], 24 | "email": ["mailto:timbl@w3.org"] 25 | } 26 | }], 27 | "summary": ["Invented the World Wide Web."] 28 | } 29 | }], 30 | "rels": {}, 31 | "rel-urls": {} 32 | } -------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/urlincontent.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-entry"], 4 | "properties": { 5 | "name": ["Expanding URLs within HTML content"], 6 | "content": [{ 7 | "value": "Should not change: http://www.w3.org/\n Should not change: http://example.com/\n File relative: test.html = http://example.com/test.html\n Directory relative: /test/test.html = http://example.com/test/test.html\n Relative to root: /test.html = http://example.com/test.html\n \n http://example.com/images/photo.gif", 8 | "html": "\n " 9 | }] 10 | } 11 | }], 12 | "rels": {}, 13 | "rel-urls": {} 14 | } 15 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-product/aggregate.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Raspberry Pi

4 | 5 |

The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.

6 | More info about the Raspberry Pi 7 |

£29.95

8 |

9 | 10 | 9.2 out of 11 | 10 12 | based on 178 reviews 13 | 14 |

15 |

Categories: Computer, Education

16 |

From: 17 | The Raspberry Pi Foundation - 18 | Cambridge 19 | UK 20 |

21 |
-------------------------------------------------------------------------------- /tests/microformats-v2-unit/nested/nested-microformat-mistyped.html: -------------------------------------------------------------------------------- 1 | 7 | 8 |
9 |
NotPartOfTest
10 |
Valid
11 |
12 |
13 |
NotPartOfTest
14 |
Valid
15 |
16 |
17 |
NotPartOfTest
18 |
Valid
19 |
20 | 21 |
22 |
NotPartOfTest
23 |
Valid
24 |
25 |
26 |
NotPartOfTest
27 |
Valid
28 |
29 |
30 |
NotPartOfTest
31 |
Valid
32 |
33 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/u-property.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

microformats.org at 7

4 | 5 | 6 |

7 | 8 | Article permalink 9 |

10 |

11 | http://microformats.org/ - 12 | 2012/06/25/microformats-org-at-7 13 |

14 | 15 |

Article permalink

16 | 17 | company logos 18 | 19 | microformats.org 20 | 21 | 22 | company logos 23 | 24 | 27 | 28 | 29 | 30 | value-class-pattern 31 | 32 |

http://microformats.org/discuss

33 |
-------------------------------------------------------------------------------- /tests/microformats-v1/includes/object.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-event"], 4 | "properties": { 5 | "start": ["2012-10-30T11:45:00-08:00"], 6 | "name": ["Build Conference"], 7 | "location": [{ 8 | "value": "Redmond, \n Washington, \n USA", 9 | "type": ["h-adr"], 10 | "properties": { 11 | "locality": ["Redmond"], 12 | "region": ["Washington"], 13 | "country-name": ["USA"] 14 | } 15 | }] 16 | } 17 | }, { 18 | "type": ["h-event"], 19 | "properties": { 20 | "start": ["2012-10-31T11:15:00-08:00"], 21 | "name": ["Build Conference"], 22 | "location": [{ 23 | "value": "Redmond, \n Washington, \n USA", 24 | "type": ["h-adr"], 25 | "properties": { 26 | "locality": ["Redmond"], 27 | "region": ["Washington"], 28 | "country-name": ["USA"] 29 | } 30 | }] 31 | } 32 | }, { 33 | "type": ["h-adr"], 34 | "properties": { 35 | "locality": ["Redmond"], 36 | "region": ["Washington"], 37 | "country-name": ["USA"] 38 | } 39 | }], 40 | "rels": {}, 41 | "rel-urls": {} 42 | } -------------------------------------------------------------------------------- /tests/microformats-v2/rel/xfn-all.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/microformats-v1/hfeed/simple.html: -------------------------------------------------------------------------------- 1 |
2 |

Microformats blog

3 | Tantek 4 | permlink 5 | 6 |

7 | Tags: , 8 | 9 |

10 | 11 |
12 |

microformats.org at 7

13 |
14 |

Last week the microformats.org community 15 | celebrated its 7th birthday at a gathering hosted by Mozilla in 16 | San Francisco and recognized accomplishments, challenges, and 17 | opportunities.

18 | 19 |

The microformats tagline “humans first, machines second” 20 | forms the basis of many of our 21 | principles, and 22 | in that regard, we’d like to recognize a few people and 23 | thank them for their years of volunteer service

24 |
25 |

Updated 26 | 27 |

28 |
29 | 30 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hreview/vcard.html: -------------------------------------------------------------------------------- 1 |
2 | 5 out of 5 stars 3 |

Crepes on Cole is awesome

4 | 5 | Reviewer: Tantek - 6 | 7 | 8 |
9 |

10 | Crepes on Cole is one of the best little 11 | creperies in San Francisco. 12 | Excellent food and service. Plenty of tables in a variety of sizes 13 | for parties large and small. Window seating makes for excellent 14 | people watching to/from the N-Judah which stops right outside. 15 | I've had many fun social gatherings here, as well as gotten 16 | plenty of work done thanks to neighborhood WiFi. 17 |

18 |
19 |

Visit date: April 2005

20 |

Food eaten:

21 |

Permanent link for review: http://example.com/crepe

22 |

Creative Commons Attribution-ShareAlike License

23 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-card/impliedname.html: -------------------------------------------------------------------------------- 1 | 2 | Jane Doe 3 | Jane Doe 4 | JD 5 | 6 |
Jane Doe
7 |
Jane Doe
8 |
JD
9 | 10 |
Jane Doe
11 |
Jane Doe
12 |
JD
13 | 14 | 15 |
John DoeName
16 |
John DoeName
17 |
JD
18 | 19 | 20 |
John Doe, Mozilla
21 | 22 | 23 |

John Doe Jr.

24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-review/vcard.html: -------------------------------------------------------------------------------- 1 |
2 | 5 out of 5 stars 3 |

Crepes on Cole is awesome

4 | 5 | Reviewer: Tantek - 6 | 7 | 8 |
9 |

10 | Crepes on Cole is one of the best little 11 | creperies in San Francisco. 12 | Excellent food and service. Plenty of tables in a variety of sizes 13 | for parties large and small. Window seating makes for excellent 14 | people watching to/from the N-Judah which stops right outside. 15 | I've had many fun social gatherings here, as well as gotten 16 | plenty of work done thanks to neighborhood WiFi. 17 |

18 |
19 |

Visit date: April 2005

20 |

Food eaten: crepe

21 |

Permanent link for review: http://example.com/crepe

22 |

Creative Commons Attribution-ShareAlike License

23 |
-------------------------------------------------------------------------------- /tests/microformats-v1/includes/hyperlink.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "org": ["Twitter"], 6 | "adr": [{ 7 | "value": "1355 Market St,\n San Francisco, \n CA\n 94103", 8 | "type": ["h-adr"], 9 | "properties": { 10 | "street-address": ["1355 Market St"], 11 | "locality": ["San Francisco"], 12 | "region": ["CA"], 13 | "postal-code": ["94103"] 14 | } 15 | }] 16 | } 17 | }, { 18 | "type": ["h-card"], 19 | "properties": { 20 | "org": ["Twitter"], 21 | "adr": [{ 22 | "value": "1355 Market St,\n San Francisco, \n CA\n 94103", 23 | "type": ["h-adr"], 24 | "properties": { 25 | "street-address": ["1355 Market St"], 26 | "locality": ["San Francisco"], 27 | "region": ["CA"], 28 | "postal-code": ["94103"] 29 | } 30 | }] 31 | } 32 | }, { 33 | "type": ["h-adr"], 34 | "properties": { 35 | "street-address": ["1355 Market St"], 36 | "locality": ["San Francisco"], 37 | "region": ["CA"], 38 | "postal-code": ["94103"] 39 | } 40 | }], 41 | "rels": {}, 42 | "rel-urls": {} 43 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hproduct/simpleproperties.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-product"], 4 | "properties": { 5 | "name": ["Raspberry Pi"], 6 | "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"], 7 | "description": [ "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming." ], 8 | "url": ["http://www.raspberrypi.org/"], 9 | "price": ["£29.95"], 10 | "category": ["Computer", "Education"], 11 | "review": [{ 12 | "value": "4.5 out of 5", 13 | "type": ["h-review"], 14 | "properties": { 15 | "rating": ["4.5"] 16 | } 17 | }] 18 | } 19 | }], 20 | "rels": { 21 | "tag": ["http://en.wikipedia.org/wiki/computer", "http://en.wikipedia.org/wiki/education"] 22 | }, 23 | "rel-urls": { 24 | "http://en.wikipedia.org/wiki/computer": { 25 | "text": "Computer", 26 | "rels": ["tag"] 27 | }, 28 | "http://en.wikipedia.org/wiki/education": { 29 | "text": "Education", 30 | "rels": ["tag"] 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-product/simpleproperties.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-product"], 4 | "properties": { 5 | "name": ["Raspberry Pi"], 6 | "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"], 7 | "description": [{ 8 | "value": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.", 9 | "html": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming." 10 | }], 11 | "url": ["http://www.raspberrypi.org/"], 12 | "price": ["£29.95"], 13 | "category": ["Computer", "Education"], 14 | "review": [{ 15 | "value": "4.5 out of 5", 16 | "type": ["h-review"], 17 | "properties": { 18 | "rating": ["4.5"] 19 | } 20 | }] 21 | } 22 | }], 23 | "rels": {}, 24 | "rel-urls": {} 25 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hproduct/aggregate.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Raspberry Pi

4 | 5 |

The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.

6 | More info about the Raspberry Pi 7 |

£29.95

8 |

9 | 10 | 9.2 out of 11 | 10 12 | based on 178 reviews 13 | 14 |

15 |

Categories: 16 | , 17 | 18 |

19 |

From: 20 | The Raspberry Pi Foundation - 21 | 22 | Cambridge 23 | UK 24 | 25 |

26 |
-------------------------------------------------------------------------------- /tests/microformats-v2-unit/nested/tentative-nested-microformat.html: -------------------------------------------------------------------------------- 1 | 6 | 7 | 11 |
12 |
NotPartOfTest
13 |
Valid
14 |
15 | 19 |
20 |
NotPartOfTest
21 |
22 |
NotPartOfTest
23 | Valid 24 |
25 |
26 | 27 | 28 |
29 |
30 | Invalid 31 | Invalid 32 | Invalid 33 |
34 |
35 |
36 |
NotPartOfTest
37 |
38 | Invalid 39 | NotPartOfTest 40 | Invalid 41 |
42 |
43 | -------------------------------------------------------------------------------- /tests/microformats-v2/rel/xfn-elsewhere.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [], 3 | "rels": { 4 | "me": ["http://twitter.com/glennjones", "http://delicious.com/glennjonesnet/", "https://plus.google.com/u/0/105161464208920272734/about", "http://lanyrd.com/people/glennjones/", "http://github.com/glennjones", "http://www.flickr.com/photos/glennjonesnet/", "http://www.linkedin.com/in/glennjones", "http://www.slideshare.net/glennjones/presentations"] 5 | }, 6 | "rel-urls": { 7 | "http://twitter.com/glennjones": { 8 | "text": "twitter", 9 | "rels": ["me"] 10 | }, 11 | "http://delicious.com/glennjonesnet/": { 12 | "text": "delicious", 13 | "rels": ["me"] 14 | }, 15 | "https://plus.google.com/u/0/105161464208920272734/about": { 16 | "text": "google+", 17 | "rels": ["me"] 18 | }, 19 | "http://lanyrd.com/people/glennjones/": { 20 | "text": "lanyrd", 21 | "rels": ["me"] 22 | }, 23 | "http://github.com/glennjones": { 24 | "text": "github", 25 | "rels": ["me"] 26 | }, 27 | "http://www.flickr.com/photos/glennjonesnet/": { 28 | "text": "flickr", 29 | "rels": ["me"] 30 | }, 31 | "http://www.linkedin.com/in/glennjones": { 32 | "text": "linkedin", 33 | "rels": ["me"] 34 | }, 35 | "http://www.slideshare.net/glennjones/presentations": { 36 | "text": "slideshare", 37 | "rels": ["me"] 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /tests/microformats-v1/hcalendar/ampm.html: -------------------------------------------------------------------------------- 1 |
2 | The 4th Microformat party will be on 3 |
    4 |
  • 5 | , from 6 | 07:00:00pm 7 |
  • 8 |
  • 9 | , from 10 | 07:00:00am 11 |
  • 12 |
  • 13 | , from 14 | 07:00pm 15 |
  • 16 |
  • 17 | , from 18 | 07pm 19 |
  • 20 |
  • 21 | , from 22 | 7pm 23 |
  • 24 |
  • 25 | , from 26 | 7:00pm 27 |
  • 28 |
  • 29 | , from 30 | 07:00p.m. 31 |
  • 32 |
  • 33 | , from 34 | 07:00PM 35 |
  • 36 |
  • 37 | , from 38 | 7:00am 39 |
  • 40 |
41 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-event/ampm.html: -------------------------------------------------------------------------------- 1 | 2 | The 4th Microformat party will be on 3 |
    4 |
  • 5 | , from 6 | 07:00:00pm 7 |
  • 8 |
  • 9 | , from 10 | 07:00:00am 11 |
  • 12 |
  • 13 | , from 14 | 07:00pm 15 |
  • 16 |
  • 17 | , from 18 | 07pm 19 |
  • 20 |
  • 21 | , from 22 | 7pm 23 |
  • 24 |
  • 25 | , from 26 | 7:00pm 27 |
  • 28 |
  • 29 | , from 30 | 07:00p.m. 31 |
  • 32 |
  • 33 | , from 34 | 07:00PM 35 |
  • 36 |
  • 37 | , from 38 | 7:00am 39 |
  • 40 |
41 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hnews/all.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

microformats.org at 7

4 |
5 |

Last week the microformats.org community 6 | celebrated its 7th birthday at a gathering hosted by Mozilla in 7 | San Francisco and recognized accomplishments, challenges, and 8 | opportunities.

9 | 10 |

The microformats tagline “humans first, machines second” 11 | forms the basis of many of our 12 | principles, and 13 | in that regard, we’d like to recognize a few people and 14 | thank them for their years of volunteer service

15 |
16 |

Updated 17 | by 18 | Tantek 19 |

20 |
21 | 22 |

23 | 29 | (Geo: 37.774921;-122.445202) 30 | 31 | microformats.org 32 | 33 |

34 |

35 | Publishing policy 36 |

37 |
-------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | // This file create a small node server so 3 | // you view the files over http://localhost:3009/ 4 | // enter in commandline - $ node app 5 | // Glenn Jones 6 | 7 | 8 | var Hapi = require('hapi'), 9 | Blipp = require('blipp'), 10 | Pack = require('./package'); 11 | 12 | 13 | var routes = [{ 14 | method: 'GET', 15 | path: '/{path*}', 16 | handler: { 17 | directory: { 18 | path: '/tests', 19 | listing: true, 20 | index: false 21 | } 22 | } 23 | },{ 24 | method: 'GET', 25 | path: '/css/{path*}', 26 | handler: { 27 | directory: { 28 | path: './css', 29 | listing: true, 30 | index: true 31 | } 32 | } 33 | },{ 34 | method: 'GET', 35 | path: '/javascript/{path*}', 36 | handler: { 37 | directory: { 38 | path: './javascript', 39 | listing: true, 40 | index: true 41 | } 42 | } 43 | }]; 44 | 45 | 46 | 47 | // Create a server with a host and port 48 | var server = new Hapi.Server(); 49 | 50 | server.connection({ 51 | host: (process.env.PORT)? '0.0.0.0' : 'localhost', 52 | port: parseInt(process.env.PORT, 10) || 3008 53 | }); 54 | 55 | 56 | // hapi server settings 57 | server.route(routes); 58 | 59 | 60 | var goodOptions = { 61 | opsInterval: 1000, 62 | reporters: [{ 63 | reporter: require('good-console'), 64 | events: { log: '*', response: '*' } 65 | }] 66 | }; 67 | 68 | 69 | 70 | // Register plug-in and start 71 | server.register([{ 72 | register: require('good'), 73 | options: goodOptions 74 | },{ 75 | register: require('blipp'), 76 | }], function (err) { 77 | if (err) { 78 | console.error(err); 79 | }else { 80 | server.start(function () { 81 | console.info('Server started at ' + server.info.uri); 82 | }); 83 | } 84 | }); 85 | -------------------------------------------------------------------------------- /tests/microformats-v1/includes/hcarditemref.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-card"], 4 | "properties": { 5 | "org": ["Mozilla"], 6 | "adr": [{ 7 | "value": "665 3rd St. \n Suite 207 \n San Francisco, \n CA \n 94107 \n U.S.A.", 8 | "type": ["h-adr"], 9 | "properties": { 10 | "street-address": ["665 3rd St."], 11 | "extended-address": ["Suite 207"], 12 | "locality": ["San Francisco"], 13 | "region": ["CA"], 14 | "postal-code": ["94107"], 15 | "country-name": ["U.S.A."] 16 | } 17 | }] 18 | } 19 | }, { 20 | "type": ["h-card"], 21 | "properties": { 22 | "org": ["Mozilla"], 23 | "adr": [{ 24 | "value": "665 3rd St. \n Suite 207 \n San Francisco, \n CA \n 94107 \n U.S.A.", 25 | "type": ["h-adr"], 26 | "properties": { 27 | "street-address": ["665 3rd St."], 28 | "extended-address": ["Suite 207"], 29 | "locality": ["San Francisco"], 30 | "region": ["CA"], 31 | "postal-code": ["94107"], 32 | "country-name": ["U.S.A."] 33 | } 34 | }] 35 | } 36 | }, { 37 | "type": ["h-adr"], 38 | "properties": { 39 | "street-address": ["665 3rd St."], 40 | "extended-address": ["Suite 207"], 41 | "locality": ["San Francisco"], 42 | "region": ["CA"], 43 | "postal-code": ["94107"], 44 | "country-name": ["U.S.A."] 45 | } 46 | }], 47 | "rels": {}, 48 | "rel-urls": {} 49 | } -------------------------------------------------------------------------------- /tests/microformats-v1/hcalendar/time.html: -------------------------------------------------------------------------------- 1 |
2 | The 4th Microformat party will be on 3 |
    4 |
  • 5 | , from 6 | 7 |
  • 8 |
  • 9 | , from 10 | 11 |
  • 12 |
  • 13 | , from 14 | 15 |
  • 16 |
  • 17 | , from 18 | 19 |
  • 20 |
  • 21 | , from 22 | 23 |
  • 24 |
  • 25 | , from 26 | 27 |
  • 28 |
  • 29 | , from 30 | 31 |
  • 32 |
  • 33 | , from 34 | 35 |
  • 36 |
  • 37 | , from 38 | 39 |
  • 40 |
  • 41 | 42 |
  • 43 |
44 |
-------------------------------------------------------------------------------- /tests/microformats-v1/hentry/summarycontent.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-entry"], 4 | "properties": { 5 | "name": ["microformats.org at 7"], 6 | "content": [{ 7 | "value": "Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.\n\n The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service", 8 | "html": "

Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.

\n\n

The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service

" 9 | }], 10 | "summary": ["Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities."], 11 | "updated": ["2012-06-25T17:08:26"], 12 | "author": [{ 13 | "value": "Tantek", 14 | "type": ["h-card"], 15 | "properties": { 16 | "name": ["Tantek"], 17 | "url": ["http://tantek.com/"] 18 | } 19 | }] 20 | } 21 | }], 22 | "rels": {}, 23 | "rel-urls": {} 24 | } 25 | -------------------------------------------------------------------------------- /tests/microformats-v2/mixed/change-log.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | h-review parsing tests 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |

h-review parsing tests ‐ change logs

17 | 18 |

The files in this directory where designed to test parsing rules that are not specific to any particular microformat type but rather apply to all of them.

19 | 20 |

Change log:

21 | 34 | 35 |

Contributors:

36 | 42 | 43 |
44 | All content and code is released into the public domain 45 |
46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-feed/implied-title.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-feed"], 4 | "properties": {}, 5 | "children": [{ 6 | "type": ["h-entry"], 7 | "properties": { 8 | "name": ["microformats.org at 7"], 9 | "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"], 10 | "content": [{ 11 | "value": "Last week the microformats.org community \n\t\t celebrated its 7th birthday at a gathering hosted by Mozilla in \n\t\t San Francisco and recognized accomplishments, challenges, and \n\t\t opportunities.\n\t\t\n\t\t The microformats tagline “humans first, machines second” \n\t\t forms the basis of many of our \n\t\t principles, and \n\t\t in that regard, we’d like to recognize a few people and \n\t\t thank them for their years of volunteer service", 12 | "html": "

Last week the microformats.org community \n\t\t celebrated its 7th birthday at a gathering hosted by Mozilla in \n\t\t San Francisco and recognized accomplishments, challenges, and \n\t\t opportunities.

\n\t\t\n\t\t

The microformats tagline “humans first, machines second” \n\t\t forms the basis of many of our \n\t\t principles, and \n\t\t in that regard, we’d like to recognize a few people and \n\t\t thank them for their years of volunteer service

" 13 | }], 14 | "summary": ["Last week the microformats.org community \n\t\t celebrated its 7th birthday at a gathering hosted by Mozilla in \n\t\t San Francisco and recognized accomplishments, challenges, and \n\t\t opportunities."], 15 | "updated": ["2012-06-25T17:08:26"] 16 | } 17 | }] 18 | }], 19 | "rels": {}, 20 | "rel-urls": {} 21 | } 22 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-event/time.html: -------------------------------------------------------------------------------- 1 | 2 | The 4th Microformat party will be on 3 |
    4 |
  • 5 | , from 6 | 7 |
  • 8 |
  • 9 | , from 10 | 11 |
  • 12 |
  • 13 | , from 14 | 15 |
  • 16 |
  • 17 | , from 18 | 19 |
  • 20 |
  • 21 | , from 22 | 23 |
  • 24 |
  • 25 | , from 26 | 27 |
  • 28 |
  • 29 | , from 30 | 31 |
  • 32 |
  • 33 | , from 34 | 35 |
  • 36 |
  • 37 | , from 38 | 39 |
  • 40 |
  • 41 | 42 |
  • 43 |
  • 44 | 45 |
  • 46 |
47 |
-------------------------------------------------------------------------------- /tests/microformats-v2/h-entry/summarycontent.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-entry"], 4 | "properties": { 5 | "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"], 6 | "name": ["microformats.org at 7"], 7 | "content": [{ 8 | "value": "Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.\n\n The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service", 9 | "html": "

Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.

\n\n

The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service

" 10 | }], 11 | "summary": ["Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities."], 12 | "updated": ["2012-06-25T17:08:26"], 13 | "author": [{ 14 | "value": "Tantek", 15 | "type": ["h-card"], 16 | "properties": { 17 | "name": ["Tantek"], 18 | "url": ["http://tantek.com/"] 19 | } 20 | }] 21 | } 22 | }], 23 | "rels": {}, 24 | "rel-urls": {} 25 | } 26 | -------------------------------------------------------------------------------- /tests/microformats-v2/rel/duplicate-rels.json: -------------------------------------------------------------------------------- 1 | { 2 | "rels": { 3 | "bookmark": [ 4 | "http://ma.tt/2015/05/beethoven-mozart-bach/", 5 | "http://ma.tt/2015/06/jefferson-on-idleness/" 6 | ], 7 | "category": [ 8 | "http://ma.tt/category/asides/" 9 | ], 10 | "tag": [ 11 | "http://ma.tt/category/asides/" 12 | ], 13 | "author": [ 14 | "http://ma.tt/author/saxmatt/" 15 | ] 16 | }, 17 | "items": [ 18 | { 19 | "type": [ 20 | "h-card" 21 | ], 22 | "properties": { 23 | "url": [ 24 | "http://ma.tt/author/saxmatt/" 25 | ], 26 | "name": [ 27 | "Matt" 28 | ] 29 | } 30 | }, 31 | { 32 | "type": [ 33 | "h-card" 34 | ], 35 | "properties": { 36 | "url": [ 37 | "http://ma.tt/author/saxmatt/" 38 | ], 39 | "name": [ 40 | "Matt" 41 | ] 42 | } 43 | } 44 | ], 45 | "rel-urls": { 46 | "http://ma.tt/category/asides/": { 47 | "rels": [ 48 | "category", 49 | "tag" 50 | ], 51 | "text": "Asides" 52 | }, 53 | "http://ma.tt/author/saxmatt/": { 54 | "rels": [ 55 | "author" 56 | ], 57 | "text": "Matt", 58 | "title": "View all posts by Matt" 59 | }, 60 | "http://ma.tt/2015/05/beethoven-mozart-bach/": { 61 | "rels": [ 62 | "bookmark" 63 | ], 64 | "text": "\nMay 31, 2015", 65 | "title": "Permalink to Beethoven, Mozart, Bach" 66 | }, 67 | "http://ma.tt/2015/06/jefferson-on-idleness/": { 68 | "rels": [ 69 | "bookmark" 70 | ], 71 | "text": "June 2, 2015", 72 | "title": "Permalink to Jefferson on Idleness" 73 | } 74 | } 75 | } -------------------------------------------------------------------------------- /tests/microformats-mixed/h-entry/mixedroots.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "type": ["h-entry"], 5 | "properties": { 6 | "author": [ 7 | { 8 | "value": "Aaron Parecki", 9 | "type": ["h-card"], 10 | "properties": { 11 | "photo": [ 12 | { 13 | "alt": "Aaron Parecki", 14 | "value": "https://aaronparecki.com/images/aaronpk.png" 15 | } 16 | ], 17 | "logo": [ 18 | { 19 | "alt": "Aaron Parecki", 20 | "value": "https://aaronparecki.com/images/aaronpk.png" 21 | } 22 | ], 23 | "url": ["https://aaronparecki.com/"], 24 | "uid": ["https://aaronparecki.com/"], 25 | "name": ["Aaron Parecki"] 26 | } 27 | } 28 | ], 29 | "content": [ 30 | { 31 | "value": "Did you play\n @playmapattackat\n #realtimeconf? Here is some more info about how we built it!\n http://pdx.esri.com/blog/2013/10/17/introducting-mapattack/", 32 | "html": "Did you play\n @playmapattackat\n #realtimeconf? Here is some more info about how we built it!\n http://pdx.esri.com/blog/2013/10/17/introducting-mapattack/" 33 | } 34 | ], 35 | "name": [ 36 | "Did you play\n @playmapattackat\n #realtimeconf? Here is some more info about how we built it!\n http://pdx.esri.com/blog/2013/10/17/introducting-mapattack/" 37 | ], 38 | "category": ["realtimeconf"] 39 | } 40 | } 41 | ], 42 | "rels": { 43 | "author": ["https://aaronparecki.com/", "https://plus.google.com/117847912875913905493"] 44 | }, 45 | "rel-urls": { 46 | "https://aaronparecki.com/": { 47 | "text": "aaronparecki.com", 48 | "rels": ["author"] 49 | }, 50 | "https://plus.google.com/117847912875913905493": { 51 | "text": "Aaron Parecki", 52 | "rels": ["author"] 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /tests/microformats-mixed/h-entry/change-log.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | h-card parsing tests 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |

h-entry parsing tests ‐ change logs

17 | 18 |

The files in this directory where designed to test the parsing of mark-up which mixes version 1 and 2 microformats.

19 |

Theses are backwards compatibility tests for the older version 1 microformats specification. Please do not use this as a reference for authoring microformats.

20 | 21 |

Change log:

22 | 35 | 36 |

Contributors:

37 | 46 | 47 |
48 | All content and code is released into the public domain 49 |
50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /tests/microformats-v2-unit/names/names-microformats.html: -------------------------------------------------------------------------------- 1 | 2 |
NotPartOfTest
3 |
NotPartOfTest
4 |
NotPartOfTest
5 |
NotPartOfTest
6 |
NotPartOfTest
7 | 8 | 9 |
NotPartOfTest
10 |
NotPartOfTest
11 |
NotPartOfTest
12 |
NotPartOfTest
13 |
NotPartOfTest
14 |
NotPartOfTest
15 | 16 | 17 |
NotPartOfTest
18 |
NotPartOfTest
19 |
NotPartOfTest
20 |
NotPartOfTest
21 |
NotPartOfTest
22 | 23 | 24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | 38 | 39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | -------------------------------------------------------------------------------- /tests/microformats-v1/hproduct/aggregate.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-product"], 4 | "properties": { 5 | "name": ["Raspberry Pi"], 6 | "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"], 7 | "description": [ "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming." ], 8 | "url": ["http://www.raspberrypi.org/"], 9 | "price": ["£29.95"], 10 | "review": [{ 11 | "value": "9.2 out of \n 10 \n based on 178 reviews", 12 | "type": ["h-review-aggregate"], 13 | "properties": { 14 | "rating": ["9.2"], 15 | "average": ["9.2"], 16 | "best": ["10"], 17 | "count": ["178"] 18 | } 19 | }], 20 | "category": ["Computer", "Education"], 21 | "brand": [{ 22 | "value": "The Raspberry Pi Foundation", 23 | "type": ["h-card"], 24 | "properties": { 25 | "name": ["The Raspberry Pi Foundation"], 26 | "org": ["The Raspberry Pi Foundation"], 27 | "adr": [{ 28 | "value": "Cambridge \n UK", 29 | "type": ["h-adr"], 30 | "properties": { 31 | "locality": ["Cambridge"], 32 | "country-name": ["UK"] 33 | } 34 | }] 35 | } 36 | }] 37 | } 38 | }], 39 | "rels": { 40 | "tag": ["http://en.wikipedia.org/wiki/computer", "http://en.wikipedia.org/wiki/education"] 41 | }, 42 | "rel-urls": { 43 | "http://en.wikipedia.org/wiki/computer": { 44 | "text": "Computer", 45 | "rels": ["tag"] 46 | }, 47 | "http://en.wikipedia.org/wiki/education": { 48 | "text": "Education", 49 | "rels": ["tag"] 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-product/aggregate.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-product"], 4 | "properties": { 5 | "name": ["Raspberry Pi"], 6 | "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"], 7 | "description": [{ 8 | "value": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.", 9 | "html": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming." 10 | }], 11 | "url": ["http://www.raspberrypi.org/"], 12 | "price": ["£29.95"], 13 | "review": [{ 14 | "value": "9.2 out of \n 10 \n based on 178 reviews", 15 | "type": ["h-review-aggregate"], 16 | "properties": { 17 | "rating": [{ 18 | "value": "9.2 out of \n 10 \n based on 178 reviews", 19 | "type": ["h-rating"], 20 | "properties": { 21 | "average": ["9.2"], 22 | "best": ["10"], 23 | "count": ["178"] 24 | } 25 | }] 26 | } 27 | }], 28 | "category": ["Computer", "Education"], 29 | "brand": [{ 30 | "value": "The Raspberry Pi Foundation", 31 | "type": ["h-card"], 32 | "properties": { 33 | "name": ["The Raspberry Pi Foundation"], 34 | "org": ["The Raspberry Pi Foundation"], 35 | "locality": ["Cambridge"], 36 | "country-name": ["UK"] 37 | } 38 | }] 39 | } 40 | }], 41 | "rels": {}, 42 | "rel-urls": {} 43 | } -------------------------------------------------------------------------------- /tests/microformats-v2-unit/nested/nested-microformat.html: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 |
NotPartOfTest
15 |
16 |
NotPartOfTest
17 |
18 |
19 |
NotPartOfTest
20 |
21 |
NotPartOfTest
22 |
23 |
24 | 25 | 30 |
31 |
NotPartOfTest
32 |
Valid
33 |
34 |
35 |
NotPartOfTest
36 |
37 | Invalid Valid Invalid 38 |
39 |
40 | 41 |
42 |
NotPartOfTest
43 |
Valid
44 |
45 |
46 |
NotPartOfTest
47 |
48 | Invalid Valid Invalid 49 |
50 |
51 | 52 |
53 |
NotPartOfTest
54 |
Valid
55 |
56 | 57 |
58 |
NotPartOfTest
59 |
60 |
Valid
61 |
http://example.test/Valid
62 |
63 |
64 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-feed/simple.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-feed"], 4 | "properties": { 5 | "name": ["Microformats blog"], 6 | "author": [{ 7 | "value": "Tantek", 8 | "type": ["h-card"], 9 | "properties": { 10 | "name": ["Tantek"], 11 | "url": ["http://tantek.com/"] 12 | } 13 | }], 14 | "url": ["http://microformats.org/blog"], 15 | "photo": ["http://example.com/photo.jpeg"] 16 | }, 17 | "children": [{ 18 | "type": ["h-entry"], 19 | "properties": { 20 | "name": ["microformats.org at 7"], 21 | "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"], 22 | "content": [{ 23 | "value": "Last week the microformats.org community \n\t celebrated its 7th birthday at a gathering hosted by Mozilla in \n\t San Francisco and recognized accomplishments, challenges, and \n\t opportunities.\n\t\n\t The microformats tagline “humans first, machines second” \n\t forms the basis of many of our \n\t principles, and \n\t in that regard, we’d like to recognize a few people and \n\t thank them for their years of volunteer service", 24 | "html": "

Last week the microformats.org community \n\t celebrated its 7th birthday at a gathering hosted by Mozilla in \n\t San Francisco and recognized accomplishments, challenges, and \n\t opportunities.

\n\t\n\t

The microformats tagline “humans first, machines second” \n\t forms the basis of many of our \n\t principles, and \n\t in that regard, we’d like to recognize a few people and \n\t thank them for their years of volunteer service

" 25 | }], 26 | "summary": ["Last week the microformats.org community \n\t celebrated its 7th birthday at a gathering hosted by Mozilla in \n\t San Francisco and recognized accomplishments, challenges, and \n\t opportunities."], 27 | "updated": ["2012-06-25T17:08:26"] 28 | } 29 | }] 30 | }], 31 | "rels": {}, 32 | "rel-urls": {} 33 | } 34 | -------------------------------------------------------------------------------- /tests/microformats-v1/hproduct/change-log.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | hproduct parsing tests 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |

hproduct parsing tests ‐ change logs

17 | 18 |

The files in this directory where designed to test the parsing of hproduct.

19 | 20 | 21 |

Change log:

22 | 45 | 46 | 47 |

Contributors:

48 | 54 | 55 | 56 |
57 | All content and code is released into the public domain 58 |
59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-recipe/change-log.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | h-recipe parsing tests 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |

h-recipe parsing tests ‐ change logs

17 | 18 |

The files in this directory where designed to test the parsing of h-recipe.

19 | 20 | 21 |

Change log:

22 | 45 | 46 | 47 |

Contributors:

48 | 54 | 55 | 56 |
57 | All content and code is released into the public domain 58 |
59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-adr/change-log.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | h-adr parsing tests 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |

h-adr parsing tests ‐ change logs

17 | 18 |

The files in this directory where designed to test the parsing of h-adr.

19 | 20 | 21 |

Change log:

22 | 45 | 46 | 47 |

Contributors:

48 | 54 | 55 | 56 |
57 | All content and code is released into the public domain 58 |
59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-product/change-log.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | h-product parsing tests 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |

h-product parsing tests ‐ change logs

17 | 18 |

The files in this directory where designed to test the parsing of h-product.

19 | 20 | 21 |

Change log:

22 | 45 | 46 | 47 |

Contributors:

48 | 54 | 55 | 56 |
57 | All content and code is released into the public domain 58 |
59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /tests/microformats-v2/h-review/vcard.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [{ 3 | "type": ["h-review"], 4 | "properties": { 5 | "rating": ["5"], 6 | "name": ["Crepes on Cole is awesome"], 7 | "reviewer": [{ 8 | "value": "Tantek", 9 | "type": ["h-card"], 10 | "properties": { 11 | "name": ["Tantek"] 12 | } 13 | }], 14 | "reviewed": ["2005-04-18"], 15 | "description": [{ 16 | "value": "Crepes on Cole is one of the best little \n creperies in San Francisco.\n Excellent food and service. Plenty of tables in a variety of sizes \n for parties large and small. Window seating makes for excellent \n people watching to/from the N-Judah which stops right outside. \n I've had many fun social gatherings here, as well as gotten \n plenty of work done thanks to neighborhood WiFi.", 17 | "html": "

\n Crepes on Cole is one of the best little \n creperies in San Francisco.\n Excellent food and service. Plenty of tables in a variety of sizes \n for parties large and small. Window seating makes for excellent \n people watching to/from the N-Judah which stops right outside. \n I've had many fun social gatherings here, as well as gotten \n plenty of work done thanks to neighborhood WiFi.\n

" 18 | }], 19 | "item": [{ 20 | "value": "Crepes on Cole", 21 | "type": ["h-card"], 22 | "properties": { 23 | "name": ["Crepes on Cole"], 24 | "org": ["Crepes on Cole"], 25 | "adr": [{ 26 | "value": "San Francisco", 27 | "type": ["h-adr"], 28 | "properties": { 29 | "locality": ["San Francisco"] 30 | } 31 | }] 32 | } 33 | }], 34 | "category": ["crepe"], 35 | "url": ["http://example.com/crepe"] 36 | } 37 | }], 38 | "rels": { 39 | "license": ["http://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License"] 40 | }, 41 | "rel-urls": { 42 | "http://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License": { 43 | "text": "Creative Commons Attribution-ShareAlike License", 44 | "rels": ["license"] 45 | } 46 | } 47 | } 48 | --------------------------------------------------------------------------------