diff --git a/Rakefile b/Rakefile index 4d0bc70..9b40063 100644 --- a/Rakefile +++ b/Rakefile @@ -10,7 +10,22 @@ task :update_spec_cases do json_selector: ".source-javascript", html_method: "inner_text" }, - { urls: ["http://microformat2-node.jit.su/h-adr.html"], + { urls: [ + "http://microformat2-node.jit.su/h-adr.html", + "http://microformat2-node.jit.su/h-card.html", + "http://microformat2-node.jit.su/h-entry.html", + "http://microformat2-node.jit.su/h-event.html", + "http://microformat2-node.jit.su/h-geo.html", + "http://microformat2-node.jit.su/h-news.html", + "http://microformat2-node.jit.su/h-org.html", + "http://microformat2-node.jit.su/h-product.html", + "http://microformat2-node.jit.su/h-recipe.html", + "http://microformat2-node.jit.su/h-resume.html", + "http://microformat2-node.jit.su/h-review-aggregate.html", + "http://microformat2-node.jit.su/h-review.html", + "http://microformat2-node.jit.su/rel.html", + "http://microformat2-node.jit.su/includes.html", + ], html_selector: ".e-x-microformat", json_selector: ".language-json", html_method: "inner_html" diff --git a/spec/support/cases/h-card-0.html b/spec/support/cases/h-card-0.html new file mode 100644 index 0000000..97fe4cb --- /dev/null +++ b/spec/support/cases/h-card-0.html @@ -0,0 +1,3 @@ + + +

Frances Berriman

diff --git a/spec/support/cases/h-card-0.js b/spec/support/cases/h-card-0.js new file mode 100644 index 0000000..8fb7035 --- /dev/null +++ b/spec/support/cases/h-card-0.js @@ -0,0 +1,10 @@ +// http://microformat2-node.jit.su/h-card.html + +{ + "items": [{ + "type": ["h-card"], + "properties": { + "name": ["Frances Berriman"] + } + }] +} diff --git a/spec/support/cases/h-card-1.html b/spec/support/cases/h-card-1.html new file mode 100644 index 0000000..647ff9e --- /dev/null +++ b/spec/support/cases/h-card-1.html @@ -0,0 +1,3 @@ + + +Ben Ward diff --git a/spec/support/cases/h-card-1.js b/spec/support/cases/h-card-1.js new file mode 100644 index 0000000..0c8f95f --- /dev/null +++ b/spec/support/cases/h-card-1.js @@ -0,0 +1,11 @@ +// http://microformat2-node.jit.su/h-card.html + +{ + "items": [{ + "type": ["h-card"], + "properties": { + "name": ["Ben Ward"], + "url": ["http://benward.me/"] + } + }] +} diff --git a/spec/support/cases/h-card-2.html b/spec/support/cases/h-card-2.html new file mode 100644 index 0000000..00ff967 --- /dev/null +++ b/spec/support/cases/h-card-2.html @@ -0,0 +1,4 @@ + + + + Rohit Khare diff --git a/spec/support/cases/h-card-2.js b/spec/support/cases/h-card-2.js new file mode 100644 index 0000000..2998dd0 --- /dev/null +++ b/spec/support/cases/h-card-2.js @@ -0,0 +1,12 @@ +// http://microformat2-node.jit.su/h-card.html + +{ + "items": [{ + "type": ["h-card"], + "properties": { + "name": ["Rohit Khare"], + "photo": ["https://twimg0-a.akamaihd.net/profile_images/53307499/180px-Rohit-sq.jpg"], + "url": ["http://rohit.khare.org/"] + } + }] +} diff --git a/spec/support/cases/h-card-3.html b/spec/support/cases/h-card-3.html new file mode 100644 index 0000000..23a57fc --- /dev/null +++ b/spec/support/cases/h-card-3.html @@ -0,0 +1,11 @@ + + +
+ photo of Mitchell

+ Mitchell Baker + (@MitchellBaker) + Mozilla Foundation +

+

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

+

Strategy and Leadership

+
diff --git a/spec/support/cases/h-card-3.js b/spec/support/cases/h-card-3.js new file mode 100644 index 0000000..7545ef4 --- /dev/null +++ b/spec/support/cases/h-card-3.js @@ -0,0 +1,15 @@ +// http://microformat2-node.jit.su/h-card.html + +{ + "items": [{ + "type": ["h-card"], + "properties": { + "photo": ["http://blog.mozilla.org/press/files/2012/04/mitchell-baker.jpg"], + "url": ["http://blog.lizardwrangler.com/", "https://twitter.com/MitchellBaker"], + "name": ["Mitchell Baker"], + "org": ["Mozilla Foundation"], + "note": ["Mitchell is responsible for setting the direction and scope of the Mozilla Foundation and its activities."], + "category": ["Strategy", "Leadership"] + } + }] +} diff --git a/spec/support/cases/h-card-4.html b/spec/support/cases/h-card-4.html new file mode 100644 index 0000000..ac2ae6e --- /dev/null +++ b/spec/support/cases/h-card-4.html @@ -0,0 +1,6 @@ + + +
+ Mitchell Baker + (Mozilla Foundation) +
diff --git a/spec/support/cases/h-card-4.js b/spec/support/cases/h-card-4.js new file mode 100644 index 0000000..fe3515b --- /dev/null +++ b/spec/support/cases/h-card-4.js @@ -0,0 +1,26 @@ +// http://microformat2-node.jit.su/h-card.html + + { + "items": [{ + "type": ["h-card"], + "properties": { + "url": ["http://blog.lizardwrangler.com/"], + "name": ["Mitchell Baker"], + "org": [{ + "value": "Mozilla Foundation", + "type": ["h-card"], + "properties": { + "name": ["Mozilla Foundation"], + "url": ["http://mozilla.org/"] + } + }] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Mozilla Foundation"], + "url": ["http://mozilla.org/"] + } + }] + } + diff --git a/spec/support/cases/h-card-5.html b/spec/support/cases/h-card-5.html new file mode 100644 index 0000000..a529eb2 --- /dev/null +++ b/spec/support/cases/h-card-5.html @@ -0,0 +1,6 @@ + + +
+ Mitchell Baker + (Mozilla Foundation) +
diff --git a/spec/support/cases/h-card-5.js b/spec/support/cases/h-card-5.js new file mode 100644 index 0000000..ad8da76 --- /dev/null +++ b/spec/support/cases/h-card-5.js @@ -0,0 +1,30 @@ +// http://microformat2-node.jit.su/h-card.html + +{ + "items": [{ + "type": ["h-card"], + "properties": { + "name": ["Mitchell Baker"], + "url": ["http://blog.lizardwrangler.com/"], + "org": [{ + "value": "Mozilla Foundation", + "type": ["h-card", "h-org"], + "properties": { + "name": ["Mozilla Foundation"], + "url": ["http://mozilla.org/"] + } + }] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Mozilla Foundation"], + "url": ["http://mozilla.org/"] + } + },{ + "type": ["h-org"], + "properties": { + "name": ["Mozilla Foundation"] + } + }] +} diff --git a/spec/support/cases/h-card-6.html b/spec/support/cases/h-card-6.html new file mode 100644 index 0000000..2470c3c --- /dev/null +++ b/spec/support/cases/h-card-6.html @@ -0,0 +1,6 @@ + + +
+ Mitchell Baker + (Mozilla Foundation) +
diff --git a/spec/support/cases/h-card-6.js b/spec/support/cases/h-card-6.js new file mode 100644 index 0000000..e6897d2 --- /dev/null +++ b/spec/support/cases/h-card-6.js @@ -0,0 +1,29 @@ +// http://microformat2-node.jit.su/h-card.html + +{ + "items": [{ + "type": ["h-card"], + "properties": { + "name": ["Mitchell Baker"], + "url": ["http://blog.lizardwrangler.com/"] + }, + "children": [{ + "type": ["h-card", "h-org"], + "properties": { + "name": ["Mozilla Foundation"], + "url": ["http://mozilla.org/"] + } + }] + },{ + "type": ["h-card"], + "properties": { + "name": ["Mozilla Foundation"], + "url": ["http://mozilla.org/"] + } + },{ + "type": ["h-org"], + "properties": { + "name": ["Mozilla Foundation"] + } + }] +} diff --git a/spec/support/cases/h-card-7.html b/spec/support/cases/h-card-7.html new file mode 100644 index 0000000..208234a --- /dev/null +++ b/spec/support/cases/h-card-7.html @@ -0,0 +1,16 @@ + + +
+ + + John + P + Doe + +
BSc +
BA + + + PHDcompany logosMadgex +Mozilla +
diff --git a/spec/support/cases/h-card-7.js b/spec/support/cases/h-card-7.js new file mode 100644 index 0000000..e3aa10f --- /dev/null +++ b/spec/support/cases/h-card-7.js @@ -0,0 +1,15 @@ +// http://microformat2-node.jit.su/h-card.html + +{ + "items": [{ + "type": ["h-card"], + "properties": { + "name": ["John Doe"], + "given-name": ["John"], + "additional-name": ["Peter"], + "family-name": ["Doe"], + "honorific-suffix": ["MSc","PHD"], + "org": ["Madgex", "Mozilla"] + } + }] +} diff --git a/spec/support/cases/h-entry-0.html b/spec/support/cases/h-entry-0.html new file mode 100644 index 0000000..cc4f83f --- /dev/null +++ b/spec/support/cases/h-entry-0.html @@ -0,0 +1,4 @@ + + +

microformats.org at 7

+ diff --git a/spec/support/cases/h-entry-0.js b/spec/support/cases/h-entry-0.js new file mode 100644 index 0000000..07965d9 --- /dev/null +++ b/spec/support/cases/h-entry-0.js @@ -0,0 +1,10 @@ +// http://microformat2-node.jit.su/h-entry.html + +{ + "items": [{ + "type": ["h-entry"], + "properties": { + "name": ["microformats.org at 7"] + } + }] +} diff --git a/spec/support/cases/h-entry-1.html b/spec/support/cases/h-entry-1.html new file mode 100644 index 0000000..54ed61f --- /dev/null +++ b/spec/support/cases/h-entry-1.html @@ -0,0 +1,3 @@ + + +microformats.org at 7 diff --git a/spec/support/cases/h-entry-1.js b/spec/support/cases/h-entry-1.js new file mode 100644 index 0000000..77be168 --- /dev/null +++ b/spec/support/cases/h-entry-1.js @@ -0,0 +1,11 @@ +// http://microformat2-node.jit.su/h-entry.html + +{ + "items": [{ + "type": ["h-entry"], + "properties": { + "name": ["microformats.org at 7"], + "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"] + } + }] +} diff --git a/spec/support/cases/h-entry-2.html b/spec/support/cases/h-entry-2.html new file mode 100644 index 0000000..28c0157 --- /dev/null +++ b/spec/support/cases/h-entry-2.html @@ -0,0 +1,21 @@ + + +
+

microformats.org at 7

+
+

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

+ +

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

+
+

Updated + by + Tantek +

+
diff --git a/spec/support/cases/h-entry-2.js b/spec/support/cases/h-entry-2.js new file mode 100644 index 0000000..ff25a17 --- /dev/null +++ b/spec/support/cases/h-entry-2.js @@ -0,0 +1,28 @@ +// http://microformat2-node.jit.su/h-entry.html + +{ + "items": [{ + "type": ["h-entry"], + "properties": { + "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"], + "name": ["microformats.org at 7"], + "content": ["\n

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

\n "], + "summary": ["Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities."], + "updated": ["2012-06-25T17:08:26"], + "author": [{ + "value": "Tantek", + "type": ["h-card"], + "properties": { + "name": ["Tantek"], + "url": ["http://tantek.com/"] + } + }] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Tantek"], + "url": ["http://tantek.com/"] + } + }] +} diff --git a/spec/support/cases/h-entry-3.html b/spec/support/cases/h-entry-3.html new file mode 100644 index 0000000..43d5626 --- /dev/null +++ b/spec/support/cases/h-entry-3.html @@ -0,0 +1,22 @@ + + +
+

microformats.org at 7

+ + +

+ + Article permalink +

+

+ http://microformats.org/ - + 2012/06/25/microformats-org-at-7 +

+ +

Article permalink

+ + company logosmicroformats.orgcompany logos + + value-class-pattern +

http://microformats.org/discuss

+
diff --git a/spec/support/cases/h-entry-3.js b/spec/support/cases/h-entry-3.js new file mode 100644 index 0000000..30a774b --- /dev/null +++ b/spec/support/cases/h-entry-3.js @@ -0,0 +1,21 @@ +// http://microformat2-node.jit.su/h-entry.html + +{ + "items": [{ + "type": ["h-entry"], + "properties": { + "name": ["microformats.org at 7"], + "url": [ + "http://microformats.org/", + "http://microformats.org/2012/06/25/microformats-org-at-7", + "http://microformats.org/2012/06/25/microformats-org-at-7", + "http://microformats.org/", + "http://microformats.org/wiki/microformats2-parsing", + "http://microformats.org/wiki/value-class-pattern", + "http://microformats.org/wiki/", + "http://microformats.org/discuss" + ], + "photo": ["http://example.com/images/logo.gif"] + } + }] +} diff --git a/spec/support/cases/h-event-0.html b/spec/support/cases/h-event-0.html new file mode 100644 index 0000000..925f090 --- /dev/null +++ b/spec/support/cases/h-event-0.html @@ -0,0 +1,3 @@ + + +

IndieWebCamp 2012

diff --git a/spec/support/cases/h-event-0.js b/spec/support/cases/h-event-0.js new file mode 100644 index 0000000..c64a6be --- /dev/null +++ b/spec/support/cases/h-event-0.js @@ -0,0 +1,10 @@ +// http://microformat2-node.jit.su/h-event.html + +{ + "items": [{ + "type": ["h-event"], + "properties": { + "name": ["IndieWebCamp 2012"] + } + }] +} diff --git a/spec/support/cases/h-event-1.html b/spec/support/cases/h-event-1.html new file mode 100644 index 0000000..e35d828 --- /dev/null +++ b/spec/support/cases/h-event-1.html @@ -0,0 +1,3 @@ + + +IndieWebCamp 2012 diff --git a/spec/support/cases/h-event-1.js b/spec/support/cases/h-event-1.js new file mode 100644 index 0000000..d0424c8 --- /dev/null +++ b/spec/support/cases/h-event-1.js @@ -0,0 +1,11 @@ +// http://microformat2-node.jit.su/h-event.html + +{ + "items": [{ + "type": ["h-event"], + "properties": { + "name": ["IndieWebCamp 2012"], + "url": ["http://indiewebcamp.com/2012"] + } + }] +} diff --git a/spec/support/cases/h-event-2.html b/spec/support/cases/h-event-2.html new file mode 100644 index 0000000..4a7e963 --- /dev/null +++ b/spec/support/cases/h-event-2.html @@ -0,0 +1,14 @@ + + +
+ CPJ Online Press Freedom Summit + () in + San Francisco. + Attendees: + +
diff --git a/spec/support/cases/h-event-2.js b/spec/support/cases/h-event-2.js new file mode 100644 index 0000000..8199e5c --- /dev/null +++ b/spec/support/cases/h-event-2.js @@ -0,0 +1,57 @@ +// http://microformat2-node.jit.su/h-event.html + +{ + "items": [{ + "type": ["h-event"], + "properties": { + "name": ["CPJ Online Press Freedom Summit"], + "start": ["2012-10-10"], + "location": ["San Francisco"], + "attendee": [{ + "value": "Brian Warner", + "type": ["h-card"], + "properties": { + "name": ["Brian Warner"] + } + },{ + "value": "Kyle Machulis", + "type": ["h-card"], + "properties": { + "name": ["Kyle Machulis"] + } + },{ + "value": "Tantek Çelik", + "type": ["h-card"], + "properties": { + "name": ["Tantek Çelik"] + } + },{ + "value": "Sid Sutter", + "type": ["h-card"], + "properties": { + "name": ["Sid Sutter"] + } + }] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Brian Warner"] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Kyle Machulis"] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Tantek Çelik"] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Sid Sutter"] + } + }] +} diff --git a/spec/support/cases/h-event-3.html b/spec/support/cases/h-event-3.html new file mode 100644 index 0000000..57622bb --- /dev/null +++ b/spec/support/cases/h-event-3.html @@ -0,0 +1,15 @@ + + +
+ + IndieWebCamp 2012 + + from + to at + + Geoloqi, + 920 SW 3rd Ave. Suite 400, + Portland, + OR + +
diff --git a/spec/support/cases/h-event-3.js b/spec/support/cases/h-event-3.js new file mode 100644 index 0000000..02a2811 --- /dev/null +++ b/spec/support/cases/h-event-3.js @@ -0,0 +1,35 @@ +// http://microformat2-node.jit.su/h-event.html + +{ + "items": [{ + "type": ["h-event"], + "properties": { + "name": ["IndieWebCamp 2012"], + "url": ["http://indiewebcamp.com/2012"], + "start": ["2012-06-30"], + "end": ["2012-07-01"], + "location": [{ + "value": "Geoloqi, 920 SW 3rd Ave. Suite 400, Portland, OR", + "type": ["h-card"], + "properties": { + "name": ["Geoloqi"], + "org": ["Geoloqi"], + "url": ["http://geoloqi.com/"], + "street-address": ["920 SW 3rd Ave. Suite 400"], + "locality": ["Portland"], + "region": ["Oregon"] + } + }] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Geoloqi"], + "org": ["Geoloqi"], + "url": ["http://geoloqi.com/"], + "street-address": ["920 SW 3rd Ave. Suite 400"], + "locality": ["Portland"], + "region": ["Oregon"] + } + }] +} diff --git a/spec/support/cases/h-event-4.html b/spec/support/cases/h-event-4.html new file mode 100644 index 0000000..1f659e3 --- /dev/null +++ b/spec/support/cases/h-event-4.html @@ -0,0 +1,9 @@ + + + + The 4th Microformat party will be on + + , from + to + . + diff --git a/spec/support/cases/h-event-4.js b/spec/support/cases/h-event-4.js new file mode 100644 index 0000000..5e5e9db --- /dev/null +++ b/spec/support/cases/h-event-4.js @@ -0,0 +1,12 @@ +// http://microformat2-node.jit.su/h-event.html + +{ + "items": [{ + "type": ["h-event"], + "properties": { + "name": ["The 4th Microformat party"], + "start": ["2009-06-26T19:00:00"], + "end": ["2009-06-26T22:00:00"] + } + }] +} diff --git a/spec/support/cases/h-event-5.html b/spec/support/cases/h-event-5.html new file mode 100644 index 0000000..731730d --- /dev/null +++ b/spec/support/cases/h-event-5.html @@ -0,0 +1,45 @@ + + + + The 4th Microformat party will be on + diff --git a/spec/support/cases/h-event-5.js b/spec/support/cases/h-event-5.js new file mode 100644 index 0000000..48478ab --- /dev/null +++ b/spec/support/cases/h-event-5.js @@ -0,0 +1,22 @@ +// http://microformat2-node.jit.su/h-event.html + +{ + "items": [{ + "type": ["h-event"], + "properties": { + "name": ["The 4th Microformat party"], + "start": [ + "2009-06-26T19:00:00-0800", + "2009-06-26T19:00:00-0800", + "2009-06-26T19:00:00+0800", + "2009-06-26T19:00:00Z", + "2009-06-26T19:00:00", + "2009-06-26T19:00:00-0800", + "2009-06-26T19:00:00+0800", + "2009-06-26T19:00:00Z", + "2009-06-26T19:00:00" + ], + "end": ["2013-034"] + } + }] +} diff --git a/spec/support/cases/h-event-6.html b/spec/support/cases/h-event-6.html new file mode 100644 index 0000000..53f0c7f --- /dev/null +++ b/spec/support/cases/h-event-6.html @@ -0,0 +1,51 @@ + + + + The 4th Microformat party will be on + diff --git a/spec/support/cases/h-event-6.js b/spec/support/cases/h-event-6.js new file mode 100644 index 0000000..9cf8232 --- /dev/null +++ b/spec/support/cases/h-event-6.js @@ -0,0 +1,21 @@ +// http://microformat2-node.jit.su/h-event.html + +{ + "items": [{ + "type": ["h-event"], + "properties": { + "name": ["The 4th Microformat party"], + "start": [ + "2009-06-26T19:00:00", + "2009-06-26T07:00:00", + "2009-06-26T19:00:00", + "2009-06-26T19:00:00", + "2009-06-26T19:00:00", + "2009-06-26T19:00:00", + "2009-06-26T19:00:00", + "2009-06-26T19:00:00", + "2009-06-26T07:00:00" + ] + } + }] +} diff --git a/spec/support/cases/h-event-7.html b/spec/support/cases/h-event-7.html new file mode 100644 index 0000000..c83f7ed --- /dev/null +++ b/spec/support/cases/h-event-7.html @@ -0,0 +1,22 @@ + + + + The party will be on + +

+ + March 14th 2013 +

+

+ , from + 07:00:00am +

+ +

+ Just added, + Removed +

+ June 29 +

2013-07-02

+ +
diff --git a/spec/support/cases/h-event-7.js b/spec/support/cases/h-event-7.js new file mode 100644 index 0000000..3615ff4 --- /dev/null +++ b/spec/support/cases/h-event-7.js @@ -0,0 +1,20 @@ +// http://microformat2-node.jit.su/h-event.html + +{ + "items": [{ + "type": ["h-event"], + "properties": { + "name": ["The party"], + "start": [ + "2013-03-14", + "2013-06-25T07:00:00", + "2013-06-26", + "2013-06-27", + "2013-06-28", + "2013-06-29", + "2013-07-01", + "2013-07-02" + ] + } + }] +} diff --git a/spec/support/cases/h-geo-0.html b/spec/support/cases/h-geo-0.html new file mode 100644 index 0000000..9c8213f --- /dev/null +++ b/spec/support/cases/h-geo-0.html @@ -0,0 +1,5 @@ + + +

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

diff --git a/spec/support/cases/h-geo-0.js b/spec/support/cases/h-geo-0.js new file mode 100644 index 0000000..55ab1fb --- /dev/null +++ b/spec/support/cases/h-geo-0.js @@ -0,0 +1,10 @@ +// http://microformat2-node.jit.su/h-geo.html + +{ + "items": [{ + "type": ["h-geo"], + "properties": { + "name": ["51.513458;-0.14812"] + } + }] +} diff --git a/spec/support/cases/h-geo-1.html b/spec/support/cases/h-geo-1.html new file mode 100644 index 0000000..a810687 --- /dev/null +++ b/spec/support/cases/h-geo-1.html @@ -0,0 +1,7 @@ + + +

We are meeting at + The Bricklayer's Arms + (Geo: 51.513458: + -0.14812) +

diff --git a/spec/support/cases/h-geo-1.js b/spec/support/cases/h-geo-1.js new file mode 100644 index 0000000..50693e0 --- /dev/null +++ b/spec/support/cases/h-geo-1.js @@ -0,0 +1,12 @@ +// http://microformat2-node.jit.su/h-geo.html + +{ + "items": [{ + "type": ["h-geo"], + "properties": { + "name": ["The Bricklayer's Arms"], + "latitude": ["51.513458"], + "longitude": ["-0.14812"] + } + }] +} diff --git a/spec/support/cases/h-geo-2.html b/spec/support/cases/h-geo-2.html new file mode 100644 index 0000000..02463cd --- /dev/null +++ b/spec/support/cases/h-geo-2.html @@ -0,0 +1,10 @@ + + +

My favourite hill in the lakes is + + Pen-y-ghent + (Geo: 54.155278, + -2.249722). It + raises to 694m. + +

diff --git a/spec/support/cases/h-geo-2.js b/spec/support/cases/h-geo-2.js new file mode 100644 index 0000000..c02e645 --- /dev/null +++ b/spec/support/cases/h-geo-2.js @@ -0,0 +1,13 @@ +// http://microformat2-node.jit.su/h-geo.html + +{ + "items": [{ + "type": ["h-geo"], + "properties": { + "name": ["Pen-y-ghent"], + "latitude": ["54.155278"], + "longitude": ["-2.249722"], + "altitude": ["694"] + } + }] +} diff --git a/spec/support/cases/h-geo-3.html b/spec/support/cases/h-geo-3.html new file mode 100644 index 0000000..c8a11cb --- /dev/null +++ b/spec/support/cases/h-geo-3.html @@ -0,0 +1,12 @@ + + +

+ + + N 51° 51.345, + + + W -0° 14.812 + + +

diff --git a/spec/support/cases/h-geo-3.js b/spec/support/cases/h-geo-3.js new file mode 100644 index 0000000..c2aa8d0 --- /dev/null +++ b/spec/support/cases/h-geo-3.js @@ -0,0 +1,12 @@ +// http://microformat2-node.jit.su/h-geo.html + +{ + "items": [{ + "type": ["h-geo"], + "properties": { + "latitude": ["51.513458"], + "longitude": ["-0.14812"], + "name": ["N 51° 51.345, W -0° 14.812"] + } + }] +} diff --git a/spec/support/cases/h-geo-4.html b/spec/support/cases/h-geo-4.html new file mode 100644 index 0000000..78e8f12 --- /dev/null +++ b/spec/support/cases/h-geo-4.html @@ -0,0 +1,12 @@ + + +

+ The Bricklayer's Arms + + + + + + + +

diff --git a/spec/support/cases/h-geo-4.js b/spec/support/cases/h-geo-4.js new file mode 100644 index 0000000..af893f2 --- /dev/null +++ b/spec/support/cases/h-geo-4.js @@ -0,0 +1,12 @@ +// http://microformat2-node.jit.su/h-geo.html + +{ + "items": [{ + "type": ["h-geo"], + "properties": { + "latitude": ["51.513458"], + "longitude": ["-0.14812"], + "name": ["The Bricklayer's Arms"] + } + }] +} diff --git a/spec/support/cases/h-geo-5.html b/spec/support/cases/h-geo-5.html new file mode 100644 index 0000000..1151fc3 --- /dev/null +++ b/spec/support/cases/h-geo-5.html @@ -0,0 +1,6 @@ + + +

+ N 37° 24.491, + W 122° 08.313 +

diff --git a/spec/support/cases/h-geo-5.js b/spec/support/cases/h-geo-5.js new file mode 100644 index 0000000..8ca0828 --- /dev/null +++ b/spec/support/cases/h-geo-5.js @@ -0,0 +1,12 @@ +// http://microformat2-node.jit.su/h-geo.html + +{ + "items": [{ + "type": ["h-geo"], + "properties": { + "latitude": ["37.408183"], + "longitude": ["-122.13855"], + "name": ["N 37° 24.491, W 122° 08.313"] + } + }] +} diff --git a/spec/support/cases/h-news-0.html b/spec/support/cases/h-news-0.html new file mode 100644 index 0000000..b313e8c --- /dev/null +++ b/spec/support/cases/h-news-0.html @@ -0,0 +1,26 @@ + + +
+
+

microformats.org at 7

+
+

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

+ +

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

+
+

Updated + by + Tantek +

+
+

+ microformats.org +

+
diff --git a/spec/support/cases/h-news-0.js b/spec/support/cases/h-news-0.js new file mode 100644 index 0000000..23ac33f --- /dev/null +++ b/spec/support/cases/h-news-0.js @@ -0,0 +1,37 @@ +// http://microformat2-node.jit.su/h-news.html + +{ + "items": [{ + "type": ["h-news"], + "properties": { + "entry": [{ + "value": "microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek", + "type": ["h-entry"], + "properties": { + "name": ["microformats.org at 7"], + "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"], + "content": ["\n

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

\n "], + "summary": ["Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities."], + "updated": ["2012-06-25T17:08:26"], + "author": { + "value": "Tantek", + "type": ["h-card"], + "properties": { + "name": ["Tantek"], + "url": ["http://tantek.com/"] + } + } + } + }], + "source-org": [{ + "value": "microformats.org", + "type": ["h-card"], + "properties": { + "name": ["microformats.org"], + "url": ["http://microformats.org/"] + } + }], + "name": ["microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek microformats.org"] + } + }] +} diff --git a/spec/support/cases/h-news-1.html b/spec/support/cases/h-news-1.html new file mode 100644 index 0000000..c323d5d --- /dev/null +++ b/spec/support/cases/h-news-1.html @@ -0,0 +1,37 @@ + + +
+
+

microformats.org at 7

+
+

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

+ +

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

+
+

Updated + by + Tantek +

+
+ +

+ + (Geo: 37.774921;-122.445202) + + microformats.org + +

+

+ Publishing policy +

+
diff --git a/spec/support/cases/h-news-1.js b/spec/support/cases/h-news-1.js new file mode 100644 index 0000000..1a55b7f --- /dev/null +++ b/spec/support/cases/h-news-1.js @@ -0,0 +1,48 @@ +// http://microformat2-node.jit.su/h-news.html + +{ + "items": [{ + "type": ["h-news"], + "properties": { + "entry": [{ + "value": "microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek", + "type": ["h-entry"], + "properties": { + "name": ["microformats.org at 7"], + "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"], + "content": ["\n

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

\n "], + "summary": ["Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities."], + "updated": ["2012-06-25T17:08:26"], + "author": { + "value": "Tantek", + "type": ["h-card"], + "properties": { + "name": ["Tantek"], + "url": ["http://tantek.com/"] + } + } + } + }], + "dateline": [{ + "value": "San Francisco, CA", + "type": ["h-adr"], + "properties": { + "locality": ["San Francisco"], + "region": ["CA"], + "name": ["San Francisco, CA"] + } + }], + "geo": ["37.774921;-122.445202"], + "source-org": [{ + "value": "microformats.org", + "type": ["h-card"], + "properties": { + "name": ["microformats.org"], + "url": ["http://microformats.org/"] + } + }], + "principles": ["http://microformats.org/wiki/Category:public_domain_license"], + "name": ["microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek San Francisco, CA (Geo: 37.774921;-122.445202) microformats.org Publishing policy"] + } + }] +} diff --git a/spec/support/cases/h-org-0.html b/spec/support/cases/h-org-0.html new file mode 100644 index 0000000..fc67617 --- /dev/null +++ b/spec/support/cases/h-org-0.html @@ -0,0 +1,3 @@ + + +Mozilla Foundation diff --git a/spec/support/cases/h-org-0.js b/spec/support/cases/h-org-0.js new file mode 100644 index 0000000..ab94b71 --- /dev/null +++ b/spec/support/cases/h-org-0.js @@ -0,0 +1,10 @@ +// http://microformat2-node.jit.su/h-org.html + +{ + "items": [{ + "type": ["h-org"], + "properties": { + "name": ["Mozilla Foundation"] + } + }] +} diff --git a/spec/support/cases/h-org-1.html b/spec/support/cases/h-org-1.html new file mode 100644 index 0000000..bc8f7c1 --- /dev/null +++ b/spec/support/cases/h-org-1.html @@ -0,0 +1,3 @@ + + +Mozilla Foundation diff --git a/spec/support/cases/h-org-1.js b/spec/support/cases/h-org-1.js new file mode 100644 index 0000000..b0b95a5 --- /dev/null +++ b/spec/support/cases/h-org-1.js @@ -0,0 +1,11 @@ +// http://microformat2-node.jit.su/h-org.html + +{ + "items": [{ + "type": ["h-org"], + "properties": { + "name": ["Mozilla Foundation"], + "url": ["http://mozilla.org/"] + } + }] +} diff --git a/spec/support/cases/h-org-2.html b/spec/support/cases/h-org-2.html new file mode 100644 index 0000000..ec74731 --- /dev/null +++ b/spec/support/cases/h-org-2.html @@ -0,0 +1,6 @@ + + +

+ W3C - + CSS Working Group +

diff --git a/spec/support/cases/h-org-2.js b/spec/support/cases/h-org-2.js new file mode 100644 index 0000000..a701d4a --- /dev/null +++ b/spec/support/cases/h-org-2.js @@ -0,0 +1,12 @@ +// http://microformat2-node.jit.su/h-org.html + +{ + "items": [{ + "type": ["h-org"], + "properties": { + "organization-name": ["W3C"], + "organization-unit": ["CSS Working Group"], + "name": ["W3C - CSS Working Group"] + } + }] +} diff --git a/spec/support/cases/h-product-0.html b/spec/support/cases/h-product-0.html new file mode 100644 index 0000000..4fe8f3e --- /dev/null +++ b/spec/support/cases/h-product-0.html @@ -0,0 +1,3 @@ + + +

Raspberry Pi

diff --git a/spec/support/cases/h-product-0.js b/spec/support/cases/h-product-0.js new file mode 100644 index 0000000..98e351a --- /dev/null +++ b/spec/support/cases/h-product-0.js @@ -0,0 +1,10 @@ +// http://microformat2-node.jit.su/h-product.html + +{ + "items": [{ + "type": ["h-product"], + "properties": { + "name": ["Raspberry Pi"] + } + }] +} diff --git a/spec/support/cases/h-product-1.html b/spec/support/cases/h-product-1.html new file mode 100644 index 0000000..c8b9642 --- /dev/null +++ b/spec/support/cases/h-product-1.html @@ -0,0 +1,3 @@ + + +Raspberry Pi diff --git a/spec/support/cases/h-product-1.js b/spec/support/cases/h-product-1.js new file mode 100644 index 0000000..e4baeec --- /dev/null +++ b/spec/support/cases/h-product-1.js @@ -0,0 +1,11 @@ +// http://microformat2-node.jit.su/h-product.html + +{ + "items": [{ + "type": ["h-product"], + "properties": { + "name": ["Raspberry Pi"], + "url": ["http://www.raspberrypi.org/"] + } + }] +} diff --git a/spec/support/cases/h-product-2.html b/spec/support/cases/h-product-2.html new file mode 100644 index 0000000..4284bb4 --- /dev/null +++ b/spec/support/cases/h-product-2.html @@ -0,0 +1,11 @@ + + +
+

Raspberry Pi

+

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.

+ More info about the Raspberry Pi +

£29.95

+

4.5 out of 5

+

Categories: Computer, Education

+
+ diff --git a/spec/support/cases/h-product-2.js b/spec/support/cases/h-product-2.js new file mode 100644 index 0000000..358b1ca --- /dev/null +++ b/spec/support/cases/h-product-2.js @@ -0,0 +1,23 @@ +// http://microformat2-node.jit.su/h-product.html + +{ + "items": [{ + "type": ["h-product"], + "properties": { + "name": ["Raspberry Pi"], + "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"], + "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."], + "url": ["http://www.raspberrypi.org/"], + "price": ["£29.95"], + "category": ["Computer","Education"], + "review": [{ + "value": "4.5 out of 5", + "type": ["h-review"], + "properties": { + "rating": ["4.5"], + "name": ["4.5 out of 5"] + } + }] + } + }] +} diff --git a/spec/support/cases/h-product-3.html b/spec/support/cases/h-product-3.html new file mode 100644 index 0000000..347d5de --- /dev/null +++ b/spec/support/cases/h-product-3.html @@ -0,0 +1,22 @@ + + +
+

Raspberry Pi

+

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.

+ More info about the Raspberry Pi +

£29.95

+

+ + 9.2 out of + 10 + based on 178 reviews + +

+

Categories: Computer, Education

+

From: + The Raspberry Pi Foundation - + Cambridge + UK +

+
+ diff --git a/spec/support/cases/h-product-3.js b/spec/support/cases/h-product-3.js new file mode 100644 index 0000000..4a72ebc --- /dev/null +++ b/spec/support/cases/h-product-3.js @@ -0,0 +1,42 @@ +// http://microformat2-node.jit.su/h-product.html + +{ + "items": [{ + "type": ["h-product"], + "properties": { + "name": ["Raspberry Pi"], + "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"], + "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."], + "url": ["http://www.raspberrypi.org/"], + "price": ["£29.95"], + "review": [{ + "value": "9.2 out of 10 based on 178 reviews", + "type": ["h-review-aggregate"], + "properties": { + "rating": [{ + "value": "9.2 out of 10 based on 178 reviews", + "type": ["h-rating"], + "properties": { + "average": ["9.2"], + "best": ["10"], + "count": ["178"], + "name": ["9.2 out of 10 based on 178 reviews"] + } + }], + "name": ["9.2 out of 10 based on 178 reviews"] + } + }], + "category": ["Computer","Education"], + "brand": [{ + "value": "From: The Raspberry Pi Foundation - Cambridge UK", + "type": ["h-card"], + "properties": { + "name": ["The Raspberry Pi Foundation"], + "org": ["The Raspberry Pi Foundation"], + "locality": ["Cambridge"], + "country-name": ["UK"] + } + }] + } + }] +} diff --git a/spec/support/cases/h-recipe-0.html b/spec/support/cases/h-recipe-0.html new file mode 100644 index 0000000..e8dd671 --- /dev/null +++ b/spec/support/cases/h-recipe-0.html @@ -0,0 +1,9 @@ + + +
+

Toast

+ +
diff --git a/spec/support/cases/h-recipe-0.js b/spec/support/cases/h-recipe-0.js new file mode 100644 index 0000000..9f17821 --- /dev/null +++ b/spec/support/cases/h-recipe-0.js @@ -0,0 +1,11 @@ +// http://microformat2-node.jit.su/h-recipe.html + +{ + "items": [{ + "type": ["h-recipe"], + "properties": { + "name": ["Toast"], + "ingredient": ["Slice of bread", "Butter"] + } + }] +} diff --git a/spec/support/cases/h-recipe-1.html b/spec/support/cases/h-recipe-1.html new file mode 100644 index 0000000..fa60bb1 --- /dev/null +++ b/spec/support/cases/h-recipe-1.html @@ -0,0 +1,67 @@ + + +

Yorkshire Puddings

+

Makes 6 good sized Yorkshire puddings, the way my mum taught me

+ + +

+ + + + 4.5 stars out 5 based on + 35 reviews + + + +
+

Ingredients

+ +
+ +

Time

+ +

Instructions

+
+
    +
  1. Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole + Yorkshire pudding tins and place in the oven to heat through.
  2. + +
  3. To make the batter, add all the flour into a bowl and beat in the eggs until smooth. + Gradually add the milk and water while beating the mixture. It should be smooth and + without lumps. Finally add a pinch of salt.
  4. + +
  5. Make sure the oil is piping hot before pouring the batter evenly into the tins. + Place in the oven for 20-25 minutes until pudding have risen and look golden brown
  6. +
+
+ +

Nutrition

+ +

(Amount per pudding)

+ +

+ Published on by + + Glenn Jones + +

+ Photo by dithie +
\ No newline at end of file diff --git a/spec/support/cases/h-recipe-1.js b/spec/support/cases/h-recipe-1.js new file mode 100644 index 0000000..a3aa8e3 --- /dev/null +++ b/spec/support/cases/h-recipe-1.js @@ -0,0 +1,51 @@ +// http://microformat2-node.jit.su/h-recipe.html + +{ + "items": [ { + "type": ["h-recipe"], + "properties": { + "name": ["Yorkshire Puddings"], + "summary": ["Makes 6 good sized Yorkshire puddings, the way my mum taught me"], + "yield": ["6 good sized Yorkshire puddings"], + "photo": ["http://codebits.glennjones.net/semantic/yorkshire-puddings.jpg"], + "review": [ + { + "value": "4.5 stars out 5 based on 35 reviews", + "type": ["h-review-aggregate"], + "properties": { + "rating": ["4.5 stars out 5 based on"], + "average": ["4.5"], + "count": ["35"], + "name": ["4.5 stars out 5 based on 35 reviews"] + } + } + ], + "ingredient": [ + "1 egg", + "75g plain flour", + "70ml milk", + "60ml water", + "Pinch of salt" + ], + "instructions": [ + "\n \n Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole \n Yorkshire pudding tins and place in the oven to heat through. \n \n To make the batter, add all the flour into a bowl and beat in the eggs until smooth. \n Gradually add the milk and water while beating the mixture. It should be smooth and \n without lumps. Finally add a pinch of salt.\n \n Make sure the oil is piping hot before pouring the batter evenly into the tins. \n Place in the oven for 20-25 minutes until pudding have risen and look golden brown\n \n " + ], + "nutrition": [ + "Calories: 125", + "Fat: 3.2g", + "Cholesterol: 77mg" + ], + "published": ["2011-10-27"], + "author": [ + { + "value": "Glenn Jones", + "type": ["h-card"], + "properties": { + "name": ["Glenn Jones"], + "url": ["http://glennjones.net"] + } + } + ] + } + }] +} diff --git a/spec/support/cases/h-resume-0.html b/spec/support/cases/h-resume-0.html new file mode 100644 index 0000000..c470807 --- /dev/null +++ b/spec/support/cases/h-resume-0.html @@ -0,0 +1,3 @@ + + +

Tim Berners-Lee, invented the World Wide Web.

diff --git a/spec/support/cases/h-resume-0.js b/spec/support/cases/h-resume-0.js new file mode 100644 index 0000000..a3d56ac --- /dev/null +++ b/spec/support/cases/h-resume-0.js @@ -0,0 +1,10 @@ +// http://microformat2-node.jit.su/h-resume.html + +{ + "items": [{ + "type": ["h-resume"], + "properties": { + "name": ["Tim Berners-Lee, invented the World Wide Web."] + } + }] +} diff --git a/spec/support/cases/h-resume-1.html b/spec/support/cases/h-resume-1.html new file mode 100644 index 0000000..300dcc8 --- /dev/null +++ b/spec/support/cases/h-resume-1.html @@ -0,0 +1,20 @@ + + +
+

Tim Berners-Lee

+

Invented the World Wide Web.

+
+
+

MIT

+

+ 32 Vassar Street, + Room 32-G524, + Cambridge, + MA + 02139, + USA. +

+

Tel:+1 (617) 253 5702

+

Email:timbl@w3.org

+
+
diff --git a/spec/support/cases/h-resume-1.js b/spec/support/cases/h-resume-1.js new file mode 100644 index 0000000..2149412 --- /dev/null +++ b/spec/support/cases/h-resume-1.js @@ -0,0 +1,39 @@ +// http://microformat2-node.jit.su/h-resume.html + +{ + "items": [{ + "type": ["h-resume"], + "properties": { + "name": ["Tim Berners-Lee"], + "summary": ["Invented the World Wide Web."], + "contact": [{ + "value": "MIT 32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. Tel:+1 (617) 253 5702 Email:timbl@w3.org", + "type": ["h-card"], + "properties": { + "name": ["MIT"], + "street-address": ["32 Vassar Street"], + "extended-address": ["Room 32-G524"], + "locality": ["Cambridge"], + "region": ["MA"], + "postal-code": ["02139"], + "country-name": ["USA"], + "tel": ["+1 (617) 253 5702"], + "email": ["mailto:timbl@w3.org"] + } + }] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["MIT"], + "street-address": ["32 Vassar Street"], + "extended-address": ["Room 32-G524"], + "locality": ["Cambridge"], + "region": ["MA"], + "postal-code": ["02139"], + "country-name": ["USA"], + "tel": ["+1 (617) 253 5702"], + "email": ["timbl@w3.org"] + } + }] +} diff --git a/spec/support/cases/h-resume-2.html b/spec/support/cases/h-resume-2.html new file mode 100644 index 0000000..ef39a2a --- /dev/null +++ b/spec/support/cases/h-resume-2.html @@ -0,0 +1,17 @@ + + +
+

Tim Berners-Lee

+
+

Director of the World Wide Web Foundation

+
+

Invented the World Wide Web.

+
+
+

Director

+

World Wide Web Foundation

+

+ – Present +

+
+
diff --git a/spec/support/cases/h-resume-2.js b/spec/support/cases/h-resume-2.js new file mode 100644 index 0000000..d36fafd --- /dev/null +++ b/spec/support/cases/h-resume-2.js @@ -0,0 +1,54 @@ +// http://microformat2-node.jit.su/h-resume.html + +{ + "items": [{ + "type": ["h-resume"], + "properties": { + "name": ["Tim Berners-Lee"], + "summary": ["Invented the World Wide Web."], + "contact": [{ + "value": "Director of the World Wide Web Foundation", + "type": ["h-card"], + "properties": { + "name": ["Director of the World Wide Web Foundation"], + "title": ["Director of the World Wide Web Foundation"] + } + }], + "experience": [{ + "value": "Director World Wide Web Foundation Jan 2009 - Present (2 years 11 month)", + "type": ["h-event", "h-card"], + "properties": { + "name": ["World Wide Web Foundation"], + "org": ["World Wide Web Foundation"], + "url": ["http://www.webfoundation.org/"], + "start": ["2009-01-18"], + "duration": ["P2Y11M"] + } + }] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Director of the World Wide Web Foundation"], + "title": ["Director of the World Wide Web Foundation"] + } + },{ + "type": ["h-event"], + "properties": { + "name": ["World Wide Web Foundation"], + "org": ["World Wide Web Foundation"], + "url": ["http://www.webfoundation.org/"], + "start": ["2009-01-18"], + "duration": ["P2Y11M"] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["World Wide Web Foundation"], + "org": ["World Wide Web Foundation"], + "url": ["http://www.webfoundation.org/"], + "start": ["2009-01-18"], + "duration": ["P2Y11M"] + } + }] +} diff --git a/spec/support/cases/h-resume-3.html b/spec/support/cases/h-resume-3.html new file mode 100644 index 0000000..d5227a6 --- /dev/null +++ b/spec/support/cases/h-resume-3.html @@ -0,0 +1,15 @@ + + +
+

Tim Berners-Lee

+
+

Director of the World Wide Web Foundation

+
+

Invented the World Wide Web.

+
+

+ The Queen's College, Oxford University, + BA Hons (I) Physics + – +

+
diff --git a/spec/support/cases/h-resume-3.js b/spec/support/cases/h-resume-3.js new file mode 100644 index 0000000..716fe70 --- /dev/null +++ b/spec/support/cases/h-resume-3.js @@ -0,0 +1,54 @@ +// http://microformat2-node.jit.su/h-resume.html + +{ + "items": [{ + "type": ["h-resume"], + "properties": { + "name": ["Tim Berners-Lee"], + "summary": ["Invented the World Wide Web."], + "contact": [{ + "value": "Director of the World Wide Web Foundation", + "type": ["h-card"], + "properties": { + "name": ["Director of the World Wide Web Foundation"], + "title": ["Director of the World Wide Web Foundation"] + } + }], + "education": [{ + "value": "The Queen's College, Oxford University, BA Hons (I) Physics 1973 - 1976", + "type": ["h-event", "h-card"], + "properties": { + "name": ["The Queen's College, Oxford University"], + "org": ["The Queen's College, Oxford University"], + "description": ["BA Hons (I) Physics"], + "start": ["1973-09"], + "end": ["1976-06"] + } + }] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Director of the World Wide Web Foundation"], + "title": ["Director of the World Wide Web Foundation"] + } + },{ + "type": ["h-event"], + "properties": { + "name": ["The Queen's College, Oxford University"], + "org": ["The Queen's College, Oxford University"], + "description": ["BA Hons (I) Physics"], + "start": ["1973-09"], + "end": ["1976-06"] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["World Wide Web Foundation"], + "org": ["World Wide Web Foundation"], + "url": ["http://www.webfoundation.org/"], + "start": ["2009-01-18"], + "duration": ["P2Y11M"] + } + }] +} diff --git a/spec/support/cases/h-resume-4.html b/spec/support/cases/h-resume-4.html new file mode 100644 index 0000000..4adebd0 --- /dev/null +++ b/spec/support/cases/h-resume-4.html @@ -0,0 +1,15 @@ + + +
+

+ Tim Berners-Lee, + invented the World Wide Web. +

+ Skills: + +
diff --git a/spec/support/cases/h-resume-4.js b/spec/support/cases/h-resume-4.js new file mode 100644 index 0000000..6b1fcee --- /dev/null +++ b/spec/support/cases/h-resume-4.js @@ -0,0 +1,12 @@ +// http://microformat2-node.jit.su/h-resume.html + +{ + "items": [{ + "type": ["h-resume"], + "properties": { + "name": ["Tim Berners-Lee"], + "summary": ["invented the World Wide Web"], + "skill": ["information systems", "advocacy", "leadership"] + } + }] +} diff --git a/spec/support/cases/h-resume-5.html b/spec/support/cases/h-resume-5.html new file mode 100644 index 0000000..5840011 --- /dev/null +++ b/spec/support/cases/h-resume-5.html @@ -0,0 +1,13 @@ + + +
+

+ Tim Berners-Lee, + invented the World Wide Web. +

+ Belongs to following groups: +

+ + W3C +

+
diff --git a/spec/support/cases/h-resume-5.js b/spec/support/cases/h-resume-5.js new file mode 100644 index 0000000..e7e7674 --- /dev/null +++ b/spec/support/cases/h-resume-5.js @@ -0,0 +1,27 @@ +// http://microformat2-node.jit.su/h-resume.html + +{ + "items": [{ + "type": ["h-resume"], + "properties": { + "name": ["Tim Berners-Lee"], + "summary": ["invented the World Wide Web"], + "affiliation": [{ + "value": "", + "type": ["h-card"], + "properties": { + "name": ["W3C"], + "photo": ["http://www.w3.org/Icons/WWW/w3c_home_nb.png"], + "url": ["http://www.w3.org/"] + } + }] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["W3C"], + "photo": ["http://www.w3.org/Icons/WWW/w3c_home_nb.png"], + "url": ["http://www.w3.org/"] + } + }] +} diff --git a/spec/support/cases/h-review-0.html b/spec/support/cases/h-review-0.html new file mode 100644 index 0000000..4e2ea94 --- /dev/null +++ b/spec/support/cases/h-review-0.html @@ -0,0 +1,3 @@ + + +

Crepes on Cole

diff --git a/spec/support/cases/h-review-0.js b/spec/support/cases/h-review-0.js new file mode 100644 index 0000000..51fd860 --- /dev/null +++ b/spec/support/cases/h-review-0.js @@ -0,0 +1,10 @@ +// http://microformat2-node.jit.su/h-review.html + +{ + "items": [{ + "type": ["h-review"], + "properties": { + "name": ["Crepes on Cole"] + } + }] +} diff --git a/spec/support/cases/h-review-1.html b/spec/support/cases/h-review-1.html new file mode 100644 index 0000000..7a642d7 --- /dev/null +++ b/spec/support/cases/h-review-1.html @@ -0,0 +1,3 @@ + + +Crepes on Cole diff --git a/spec/support/cases/h-review-1.js b/spec/support/cases/h-review-1.js new file mode 100644 index 0000000..58ba474 --- /dev/null +++ b/spec/support/cases/h-review-1.js @@ -0,0 +1,11 @@ +// http://microformat2-node.jit.su/h-review.html + +{ + "items": [{ + "type": ["h-review"], + "properties": { + "name": ["Crepes on Cole"], + "url": ["https://plus.google.com/116941523817079328322/about"] + } + }] +} diff --git a/spec/support/cases/h-review-2.html b/spec/support/cases/h-review-2.html new file mode 100644 index 0000000..66b7d55 --- /dev/null +++ b/spec/support/cases/h-review-2.html @@ -0,0 +1,3 @@ + + +Crepes on Cole \ No newline at end of file diff --git a/spec/support/cases/h-review-2.js b/spec/support/cases/h-review-2.js new file mode 100644 index 0000000..495eccf --- /dev/null +++ b/spec/support/cases/h-review-2.js @@ -0,0 +1,11 @@ +// http://microformat2-node.jit.su/h-review.html + +{ + "items": [{ + "type": ["h-review"], + "properties": { + "name": ["Crepes on Cole"], + "photo": ["images/photo.gif"] + } + }] +} diff --git a/spec/support/cases/h-review-3.html b/spec/support/cases/h-review-3.html new file mode 100644 index 0000000..ed3f29f --- /dev/null +++ b/spec/support/cases/h-review-3.html @@ -0,0 +1,6 @@ + + +
+ Crepes on Cole +

4.7 out of 5 stars

+
diff --git a/spec/support/cases/h-review-3.js b/spec/support/cases/h-review-3.js new file mode 100644 index 0000000..a809a68 --- /dev/null +++ b/spec/support/cases/h-review-3.js @@ -0,0 +1,19 @@ +// http://microformat2-node.jit.su/h-review.html + +{ + "items": [{ + "type": ["h-review"], + "properties": { + "item": [{ + "value": "Crepes on Cole", + "type": ["h-item"], + "properties": { + "name": ["Crepes on Cole"], + "url": ["http://example.com/crepeoncole"] + } + }], + "rating": ["4.7"], + "name": ["Crepes on Cole 4.7 out of 5 stars"] + } + }] +} diff --git a/spec/support/cases/h-review-4.html b/spec/support/cases/h-review-4.html new file mode 100644 index 0000000..82d5a0f --- /dev/null +++ b/spec/support/cases/h-review-4.html @@ -0,0 +1,8 @@ + + +
+

+ Crepes on Cole +

+

5 out of 5 stars

+
diff --git a/spec/support/cases/h-review-4.js b/spec/support/cases/h-review-4.js new file mode 100644 index 0000000..661ec41 --- /dev/null +++ b/spec/support/cases/h-review-4.js @@ -0,0 +1,20 @@ +// http://microformat2-node.jit.su/h-review.html + +{ + "items": [{ + "type": ["h-review"], + "properties": { + + "item": [{ + "value": "Crepes on Cole", + "type": ["h-item"], + "properties": { + "photo": ["http://example.com/images/photo.gif"], + "name": ["Crepes on Cole"], + "url": ["http://example.com/crepeoncole"] + } + }], + "rating": ["5"] + } + }] +} diff --git a/spec/support/cases/h-review-5.html b/spec/support/cases/h-review-5.html new file mode 100644 index 0000000..ba5b317 --- /dev/null +++ b/spec/support/cases/h-review-5.html @@ -0,0 +1,24 @@ + + +
+ 5 out of 5 stars +

Crepes on Cole is awesome

+ + Reviewer: Tantek - + +
+

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

+
+

Visit date: April 2005

+

Food eaten: crepe

+

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

+

Creative Commons Attribution-ShareAlike License

+
diff --git a/spec/support/cases/h-review-5.js b/spec/support/cases/h-review-5.js new file mode 100644 index 0000000..f933a40 --- /dev/null +++ b/spec/support/cases/h-review-5.js @@ -0,0 +1,37 @@ +// http://microformat2-node.jit.su/h-review.html + +{ + "items": [{ + "type": ["h-review"], + "properties": { + "rating": ["5"], + "name": ["Crepes on Cole is awesome"], + "reviewer": [{ + "value": "Reviewer: Tantek -", + "type": ["h-card"], + "properties": { + "name": ["Tantek"] + } + }], + "description": ["\n

\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

\n "], + "item": [{ + "value": "Crepes on Cole is one of the best little creperies in San Francisco. Excellent food and service. Plenty of tables in a variety of sizes for parties large and small. Window seating makes for excellent people watching to/from the N-Judah which stops right outside. I've had many fun social gatherings here, as well as gotten plenty of work done thanks to neighborhood WiFi.", + "type": ["h-card"], + "properties": { + "name": ["Crepes on Cole"], + "org": ["Crepes on Cole"], + "adr": [{ + "value": "San Francisco", + "type": ["h-adr"], + "properties": { + "locality": ["San Francisco"], + "name": ["San Francisco"] + } + }] + } + }], + "category": ["crepe"], + "url": ["http://example.com/crepe"] + } + }] +} diff --git a/spec/support/cases/h-review-aggregate-0.html b/spec/support/cases/h-review-aggregate-0.html new file mode 100644 index 0000000..a1a6539 --- /dev/null +++ b/spec/support/cases/h-review-aggregate-0.html @@ -0,0 +1,10 @@ + + +
+

Mediterranean Wraps

+ + Customers flock to this small restaurant for their + tasty falafel and shawerma wraps and welcoming staff. + + 4.5 out of 5 +
diff --git a/spec/support/cases/h-review-aggregate-0.js b/spec/support/cases/h-review-aggregate-0.js new file mode 100644 index 0000000..05d21f4 --- /dev/null +++ b/spec/support/cases/h-review-aggregate-0.js @@ -0,0 +1,19 @@ +// http://microformat2-node.jit.su/h-review-aggregate.html + +{ + "items": [{ + "type": ["h-review-aggregate"], + "properties": { + "item": [{ + "value": "Mediterranean Wraps", + "type": ["h-item"], + "properties": { + "name": ["Mediterranean Wraps"] + } + }], + "summary": ["Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff."], + "rating": ["4.5"], + "name": ["Mediterranean Wraps Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff. 4.5 out of 5"] + } + }] +} diff --git a/spec/support/cases/h-review-aggregate-1.html b/spec/support/cases/h-review-aggregate-1.html new file mode 100644 index 0000000..937342d --- /dev/null +++ b/spec/support/cases/h-review-aggregate-1.html @@ -0,0 +1,20 @@ + + +
+
+

Mediterranean Wraps

+

+ 433 S California Ave, + Palo Alto, + CA - + (650) 321-8189 +

+
+ Customers flock to this small restaurant for their + tasty falafel and shawerma wraps and welcoming staff. + + 9.2 out of + 10 + based on 17 reviews + +
diff --git a/spec/support/cases/h-review-aggregate-1.js b/spec/support/cases/h-review-aggregate-1.js new file mode 100644 index 0000000..4d50bc2 --- /dev/null +++ b/spec/support/cases/h-review-aggregate-1.js @@ -0,0 +1,26 @@ +// http://microformat2-node.jit.su/h-review-aggregate.html + +{ + "items": [{ + "type": ["h-review-aggregate"], + "properties": { + "item": [{ + "value": "Mediterranean Wraps 433 S California Ave, Palo Alto, CA - (650) 321-8189", + "type": ["h-card"], + "properties": { + "name": ["Mediterranean Wraps"], + "street-address": ["433 S California Ave"], + "locality": ["Palo Alto"], + "region": ["CA"], + "tel": ["(650) 321-8189"] + } + }], + "summary": ["Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff."], + "rating": ["9.2"], + "average": ["9.2"], + "best": ["10"], + "count": ["17"], + "name": ["Mediterranean Wraps 433 S California Ave, Palo Alto, CA - (650) 321-8189 Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff. 9.2 out of 10 based on 17 reviews"] + } + }] +} diff --git a/spec/support/cases/h-review-aggregate-2.html b/spec/support/cases/h-review-aggregate-2.html new file mode 100644 index 0000000..6dddd09 --- /dev/null +++ b/spec/support/cases/h-review-aggregate-2.html @@ -0,0 +1,15 @@ + + +
+
+

Fullfrontal

+

A one day JavaScript Conference held in Brighton

+

+
+ +

+ 9.9 out of + 10 + based on 62 reviews +

+
diff --git a/spec/support/cases/h-review-aggregate-2.js b/spec/support/cases/h-review-aggregate-2.js new file mode 100644 index 0000000..bb0b65f --- /dev/null +++ b/spec/support/cases/h-review-aggregate-2.js @@ -0,0 +1,23 @@ +// http://microformat2-node.jit.su/h-review-aggregate.html + +{ + "items": [{ + "type": ["h-review-aggregate"], + "properties": { + "item": [{ + "value": "Fullfrontal A one day JavaScript Conference held in Brighton 9th November 2012", + "type": ["h-event"], + "properties": { + "name": ["Fullfrontal"], + "description": ["A one day JavaScript Conference held in Brighton"], + "start": ["2012-11-09"] + } + }], + "rating": ["9.9"], + "average": ["9.9"], + "best": ["10"], + "count": ["62"], + "name": ["Fullfrontal A one day JavaScript Conference held in Brighton 9th November 2012 9.9 out of 10 based on 62 reviews"] + } + }] +} diff --git a/spec/support/cases/includes-0.html b/spec/support/cases/includes-0.html new file mode 100644 index 0000000..1be9d82 --- /dev/null +++ b/spec/support/cases/includes-0.html @@ -0,0 +1,18 @@ + + +
+ Brendan Eich +
+
+ Mitchell Baker +
+ +

Mozilla

+

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

diff --git a/spec/support/cases/includes-0.js b/spec/support/cases/includes-0.js new file mode 100644 index 0000000..02759c6 --- /dev/null +++ b/spec/support/cases/includes-0.js @@ -0,0 +1,43 @@ +// http://microformat2-node.jit.su/includes.html + +{ + "items": [{ + "type": ["h-card"], + "properties": { + "name": ["Brendan Eich"], + "org": ["Mozilla"], + "adr": [{ + "value": "665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.", + "type": ["h-adr"], + "properties": { + "street-address": ["665 3rd St."], + "extended-address": ["Suite 207"], + "locality": ["San Francisco"], + "region": ["CA"], + "postal-code": ["94107"], + "country-name": ["U.S.A."], + "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."] + } + }] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Mitchell Baker"], + "org": ["Mozilla"], + "adr": [{ + "value": "665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.", + "type": ["h-adr"], + "properties": { + "street-address": ["665 3rd St."], + "extended-address": ["Suite 207"], + "locality": ["San Francisco"], + "region": ["CA"], + "postal-code": ["94107"], + "country-name": ["U.S.A."], + "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."] + } + }] + } + }] +} diff --git a/spec/support/cases/includes-1.html b/spec/support/cases/includes-1.html new file mode 100644 index 0000000..c38509c --- /dev/null +++ b/spec/support/cases/includes-1.html @@ -0,0 +1,26 @@ + + +
+ Monetizing Android Apps - spaekers: + Chrix Finne, + Kenneth Lui - + + Room 10 + +
+
+ New Low-Level Media APIs in Android - spaekers: + Dave Burke - + + Room 11 + +
+ +

+ Session 01 is between: + to +

+

+ Moscone Center, + San Francisco +

diff --git a/spec/support/cases/includes-1.js b/spec/support/cases/includes-1.js new file mode 100644 index 0000000..30b20fa --- /dev/null +++ b/spec/support/cases/includes-1.js @@ -0,0 +1,54 @@ +// http://microformat2-node.jit.su/includes.html + +{ + "items": [{ + "type": ["h-event"], + "properties": { + "name": ["Monetizing Android Apps"], + "speaker": ["Chrix Finne","Kenneth Lui"], + "location": [{ + "value": "Room 10 Moscone Center, San Francisco", + "type": ["h-adr"], + "properties": { + "extended-address": ["Room 10", "Moscone Center"], + "locality": ["San Francisco"], + "name": ["Room 10 Moscone Center, San Francisco"] + } + }], + "start": ["2012-06-27T15:45:00-0800"], + "end": ["2012-06-27T16:45:00-0800"] + } + },{ + "type": ["h-event"], + "properties": { + "name": ["New Low-Level Media APIs in Android"], + "speaker": ["Dave Burke"], + "location": [{ + "value": "Room 11 Moscone Center, San Francisco", + "type": ["h-adr"], + "properties": { + "extended-address": ["Room 11", "Moscone Center"], + "locality": ["San Francisco"], + "name": ["Room 11 Moscone Center, San Francisco"] + } + }], + "start": ["2012-06-27T15:45:00-0800"], + "end": ["2012-06-27T16:45:00-0800"] + } + },{ + "type": ["h-adr"], + "properties": { + "extended-address": ["Room 10", "Moscone Center"], + "locality": ["San Francisco"], + "name": ["Room 10 Moscone Center, San Francisco"] + } + },{ + "type": ["h-adr"], + "properties": { + "extended-address": ["Room 11", "Moscone Center"], + "locality": ["San Francisco"], + "name": ["Room 11 Moscone Center, San Francisco"] + } + } + ] +} diff --git a/spec/support/cases/includes-2.html b/spec/support/cases/includes-2.html new file mode 100644 index 0000000..a5154b6 --- /dev/null +++ b/spec/support/cases/includes-2.html @@ -0,0 +1,13 @@ + + + + + + + + + + + + +
Opera
Chris Mills
Erik Möller
\ No newline at end of file diff --git a/spec/support/cases/includes-2.js b/spec/support/cases/includes-2.js new file mode 100644 index 0000000..0f8d106 --- /dev/null +++ b/spec/support/cases/includes-2.js @@ -0,0 +1,20 @@ +// http://microformat2-node.jit.su/includes.html + +{ + "items": [{ + "type": ["h-card"], + "properties": { + "name": ["Chris Mills"], + "url": ["http://dev.opera.com/"], + "org": ["Opera"] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Erik Möller"], + "url": ["http://dev.opera.com/"], + "org": ["Opera"] + } + } + ] +} diff --git a/spec/support/cases/includes-3.html b/spec/support/cases/includes-3.html new file mode 100644 index 0000000..577eeb1 --- /dev/null +++ b/spec/support/cases/includes-3.html @@ -0,0 +1,20 @@ + + +
+ Ben Ward + Twitter +
+
+ Dan Webb + Twitter +
+ +
+

Twitter

+

+ 1355 Market St, + San Francisco, + CA + 94103 +

+
diff --git a/spec/support/cases/includes-3.js b/spec/support/cases/includes-3.js new file mode 100644 index 0000000..4c2408b --- /dev/null +++ b/spec/support/cases/includes-3.js @@ -0,0 +1,40 @@ +// http://microformat2-node.jit.su/includes.html + +{ + "items": [{ + "type": ["h-card"], + "properties": { + "name": ["Ben Ward"], + "org": ["Twitter"], + "adr": [{ + "value": "1355 Market St, San Francisco, CA 94103", + "type": ["h-adr"], + "properties": { + "street-address": ["1355 Market St"], + "locality": ["San Francisco"], + "region": ["CA"], + "postal-code": ["94103"], + "name": ["1355 Market St, San Francisco, CA 94103"] + } + }] + } + },{ + "type": ["h-card"], + "properties": { + "name": ["Dan Webb"], + "org": ["Twitter"], + "adr": [{ + "value": "1355 Market St, San Francisco, CA 94103", + "type": ["h-adr"], + "properties": { + "street-address": ["1355 Market St"], + "locality": ["San Francisco"], + "region": ["CA"], + "postal-code": ["94103"], + "name": ["1355 Market St, San Francisco, CA 94103"] + } + }] + } + } + ] +} diff --git a/spec/support/cases/includes-4.html b/spec/support/cases/includes-4.html new file mode 100644 index 0000000..cf7624a --- /dev/null +++ b/spec/support/cases/includes-4.html @@ -0,0 +1,23 @@ + + +
+ HTML5 & CSS3 latest features in action! - + David Rousset - + +
+
+ Building High-Performing JavaScript for Modern Engines - + John-David Dalton and + Amanda Silver - + +
+ + +
+

Build Conference

+

+ Redmond, + Washington, + USA +

+
diff --git a/spec/support/cases/includes-4.js b/spec/support/cases/includes-4.js new file mode 100644 index 0000000..cf311fc --- /dev/null +++ b/spec/support/cases/includes-4.js @@ -0,0 +1,42 @@ +// http://microformat2-node.jit.su/includes.html + +{ + "items": [{ + "type": ["h-event"], + "properties": { + "name": ["HTML5 & CSS3 latest features in action!"], + "speaker": ["David Rousset"], + "summary": ["Build Conference"], + "start": ["2012-10-30T11:45:00-0800"], + "location": [{ + "value": "Redmond, Washington, USA", + "type": ["h-adr"], + "properties": { + "locality": ["Redmond"], + "region": ["Washington"], + "country-name": ["USA"], + "name": ["Redmond, Washington, USA"] + } + }] + } + },{ + "type": ["h-event"], + "properties": { + "name": ["Building High-Performing JavaScript for Modern Engines"], + "speaker": ["John-David Dalton","Amanda Silver"], + "summary": ["Build Conference"], + "start": ["2012-10-31T11:15:00-0800"], + "location": [{ + "value": "Redmond, Washington, USA", + "type": ["h-adr"], + "properties": { + "locality": ["Redmond"], + "region": ["Washington"], + "country-name": ["USA"], + "name": ["Redmond, Washington, USA"] + } + }] + } + } + ] +} diff --git a/spec/support/cases/rel-0.html b/spec/support/cases/rel-0.html new file mode 100644 index 0000000..537b2be --- /dev/null +++ b/spec/support/cases/rel-0.html @@ -0,0 +1,3 @@ + + +cc by 2.5 diff --git a/spec/support/cases/rel-0.js b/spec/support/cases/rel-0.js new file mode 100644 index 0000000..7c477bd --- /dev/null +++ b/spec/support/cases/rel-0.js @@ -0,0 +1,10 @@ +// http://microformat2-node.jit.su/rel.html + +{ + "items": [{ + "type": ["rel"], + "properties": { + "license": ["http://creativecommons.org/licenses/by/2.5/"] + } + }] +} diff --git a/spec/support/cases/rel-1.html b/spec/support/cases/rel-1.html new file mode 100644 index 0000000..af4ca9f --- /dev/null +++ b/spec/support/cases/rel-1.html @@ -0,0 +1,3 @@ + + +Copyrights diff --git a/spec/support/cases/rel-1.js b/spec/support/cases/rel-1.js new file mode 100644 index 0000000..5ea4416 --- /dev/null +++ b/spec/support/cases/rel-1.js @@ -0,0 +1,10 @@ +// http://microformat2-node.jit.su/rel.html + +{ + "items": [{ + "type": ["rel"], + "properties": { + "nofollow": ["http://microformats.org/wiki/microformats:copyrights"] + } + }] +} diff --git a/spec/support/cases/rel-2.html b/spec/support/cases/rel-2.html new file mode 100644 index 0000000..b627f29 --- /dev/null +++ b/spec/support/cases/rel-2.html @@ -0,0 +1,12 @@ + + + \ No newline at end of file diff --git a/spec/support/cases/rel-2.js b/spec/support/cases/rel-2.js new file mode 100644 index 0000000..8106aec --- /dev/null +++ b/spec/support/cases/rel-2.js @@ -0,0 +1,19 @@ +// http://microformat2-node.jit.su/rel.html + +{ + "items": [{ + "type": ["rel"], + "properties": { + "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" + ] + } + }] +} diff --git a/spec/support/cases/rel-3.html b/spec/support/cases/rel-3.html new file mode 100644 index 0000000..cd97e86 --- /dev/null +++ b/spec/support/cases/rel-3.html @@ -0,0 +1,21 @@ + + + \ No newline at end of file diff --git a/spec/support/cases/rel-3.js b/spec/support/cases/rel-3.js new file mode 100644 index 0000000..b25530a --- /dev/null +++ b/spec/support/cases/rel-3.js @@ -0,0 +1,26 @@ +// http://microformat2-node.jit.su/rel.html + +{ + "items": [{ + "type": ["rel"], + "properties": { + "friend": ["http://example.com/propfile/jane"], + "acquaintance": ["http://example.com/propfile/jeo"], + "contact": ["http://example.com/propfile/lily"], + "met": ["http://example.com/propfile/oliver"], + "co-worker": ["http://example.com/propfile/emily"], + "colleague": ["http://example.com/propfile/jack"], + "neighbor": ["http://example.com/propfile/isabella"], + "child": ["http://example.com/propfile/harry"], + "parent": ["http://example.com/propfile/sophia"], + "sibling": ["http://example.com/propfile/charlie"], + "spouse": ["http://example.com/propfile/olivia"], + "kin": ["http://example.com/propfile/james"], + "muse": ["http://example.com/propfile/ava"], + "crush": ["http://example.com/propfile/joshua"], + "date": ["http://example.com/propfile/chloe"], + "sweetheart": ["http://example.com/propfile/alfie"], + "me": ["http://example.com/propfile/isla"] + } + }] +} diff --git a/spec/support/cases/rel-4.html b/spec/support/cases/rel-4.html new file mode 100644 index 0000000..2951119 --- /dev/null +++ b/spec/support/cases/rel-4.html @@ -0,0 +1,15 @@ + + +
+

Glenn Jones

+ +
diff --git a/spec/support/cases/rel-4.js b/spec/support/cases/rel-4.js new file mode 100644 index 0000000..9be565b --- /dev/null +++ b/spec/support/cases/rel-4.js @@ -0,0 +1,42 @@ +// http://microformat2-node.jit.su/rel.html + +{ + "items": [{ + "type": ["h-card"], + "properties": { + "name": ["Glenn Jones"], + "url": ["http://glennjones.net/"] + }, + "children": [{ + "type": ["rel"], + "properties": { + "me": [ + "http://glennjones.net/", + "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" + ] + } + }] + },{ + "type": ["rel"], + "properties": { + "me": [ + "http://glennjones.net/", + "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" + ] + } + }] +}