microformats2 1.0.2 → 2.0.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.travis.yml +8 -0
- data/Gemfile +4 -0
- data/Guardfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +117 -26
- data/Rakefile +65 -9
- data/lib/microformats2.rb +30 -115
- data/lib/microformats2/collection.rb +71 -0
- data/lib/microformats2/format.rb +101 -0
- data/lib/microformats2/format_parser.rb +59 -0
- data/lib/microformats2/implied_property/foundation.rb +58 -0
- data/lib/microformats2/implied_property/name.rb +34 -0
- data/lib/microformats2/implied_property/photo.rb +24 -0
- data/lib/microformats2/implied_property/url.rb +20 -0
- data/lib/microformats2/property.rb +10 -0
- data/lib/microformats2/property/date_time.rb +31 -0
- data/lib/microformats2/property/embedded.rb +9 -0
- data/lib/microformats2/property/foundation.rb +80 -0
- data/lib/microformats2/property/text.rb +16 -0
- data/lib/microformats2/property/url.rb +18 -0
- data/lib/microformats2/property_parser.rb +54 -0
- data/lib/microformats2/version.rb +3 -0
- data/microformats2.gemspec +30 -0
- data/spec/lib/microformats2/collection_spec.rb +181 -0
- data/spec/lib/microformats2/implied_property/name_spec.rb +31 -0
- data/spec/lib/microformats2/implied_property/photo_spec.rb +31 -0
- data/spec/lib/microformats2/implied_property/url_spec.rb +31 -0
- data/spec/lib/microformats2_spec.rb +30 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-1.html +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-1.js +16 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-2.html +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-2.js +16 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-3.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-3.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-1.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-2.html +4 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-2.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-3.html +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-3.js +15 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-4.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-4.js +26 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-5.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-5.js +30 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-6.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-6.js +29 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-7.html +16 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-7.js +15 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-0.html +4 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-1.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-2.html +21 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-2.js +28 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-3.html +22 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-3.js +21 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-1.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-2.html +14 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-2.js +57 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-3.html +15 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-3.js +35 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-4.html +9 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-4.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-5.html +45 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-5.js +22 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-6.html +51 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-6.js +21 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-7.html +22 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-7.js +20 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-0.html +5 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-1.html +7 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-1.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-2.html +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-2.js +13 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-3.html +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-3.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-4.html +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-4.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-5.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-5.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-news/h-news-0.html +26 -0
- data/spec/support/cases/microformat2-node.jit.su/h-news/h-news-0.js +37 -0
- data/spec/support/cases/microformat2-node.jit.su/h-news/h-news-1.html +37 -0
- data/spec/support/cases/microformat2-node.jit.su/h-news/h-news-1.js +48 -0
- data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-1.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-2.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-2.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-1.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-2.html +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-2.js +23 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-3.html +22 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-3.js +42 -0
- data/spec/support/cases/microformat2-node.jit.su/h-recipe/h-recipe-0.html +9 -0
- data/spec/support/cases/microformat2-node.jit.su/h-recipe/h-recipe-0.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-recipe/h-recipe-1.html +67 -0
- data/spec/support/cases/microformat2-node.jit.su/h-recipe/h-recipe-1.js +51 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-1.html +20 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-1.js +39 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-2.html +17 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-2.js +54 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-3.html +15 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-3.js +54 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-4.html +15 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-4.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-5.html +13 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-5.js +27 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-0.html +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-0.js +19 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-1.html +20 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-1.js +26 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-2.html +15 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-2.js +23 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-1.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-2.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-2.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-3.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-3.js +19 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-4.html +8 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-4.js +20 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-5.html +24 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-5.js +37 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-0.html +18 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-0.js +43 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-1.html +26 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-1.js +54 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-2.html +13 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-2.js +20 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-3.html +20 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-3.js +40 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-4.html +23 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-4.js +42 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-1.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-2.html +12 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-2.js +19 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-3.html +21 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-3.js +26 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-4.html +15 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-4.js +42 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-0.html +2 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-0.js +9 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-1.html +2 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-1.js +10 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-2.html +5 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-2.js +11 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-3.html +17 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-3.js +20 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-4.html +16 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-4.js +24 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-5.html +7 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-5.js +11 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-6.html +9 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-6.js +18 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-7.html +9 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-7.js +18 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-8.html +9 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-8.js +17 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-9.html +9 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-9.js +17 -0
- data/spec/support/lib/microformats2/implied_property/name-fail.html +60 -0
- data/spec/support/lib/microformats2/implied_property/name-pass.html +30 -0
- data/spec/support/lib/microformats2/implied_property/photo-fail.html +60 -0
- data/spec/support/lib/microformats2/implied_property/photo-pass.html +30 -0
- data/spec/support/lib/microformats2/implied_property/url-fail.html +18 -0
- data/spec/support/lib/microformats2/implied_property/url-pass.html +12 -0
- data/spec/support/lib/microformats2/nested-format-with-property.html +12 -0
- data/spec/support/lib/microformats2/nested-format-with-property.js +15 -0
- data/spec/support/lib/microformats2/nested-format-without-property.html +13 -0
- data/spec/support/lib/microformats2/nested-property.html +12 -0
- data/spec/support/lib/microformats2/nested-property.js +9 -0
- data/spec/support/lib/microformats2/simple.html +19 -0
- data/spec/support/lib/microformats2/simple.js +10 -0
- metadata +535 -85
- data/.autotest +0 -23
- data/.gemtest +0 -0
- data/History.txt +0 -19
- data/Manifest.txt +0 -10
- data/bin/microformats2 +0 -3
- data/test/IndieWebCamp.html +0 -351
- data/test/simple.html +0 -30
- data/test/test_microformats2.rb +0 -185
@@ -0,0 +1,10 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-adr.html -->
|
2
|
+
|
3
|
+
<p class="h-adr">
|
4
|
+
<span class="p-street-address">665 3rd St.</span>
|
5
|
+
<span class="p-extended-address">Suite 207</span>
|
6
|
+
<span class="p-locality">San Francisco</span>,
|
7
|
+
<span class="p-region">CA</span>
|
8
|
+
<span class="p-postal-code">94107</span>
|
9
|
+
<span class="p-country-name">U.S.A.</span>
|
10
|
+
</p>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-adr.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-adr"],
|
6
|
+
"properties": {
|
7
|
+
"street-address": ["665 3rd St."],
|
8
|
+
"extended-address": ["Suite 207"],
|
9
|
+
"locality": ["San Francisco"],
|
10
|
+
"region": ["CA"],
|
11
|
+
"postal-code": ["94107"],
|
12
|
+
"country-name": ["U.S.A."],
|
13
|
+
"name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
|
14
|
+
}
|
15
|
+
}]
|
16
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-adr.html -->
|
2
|
+
|
3
|
+
<p class="h-adr">
|
4
|
+
<span class="p-name">Bricklayer's Arms</span>
|
5
|
+
<span class="p-label">
|
6
|
+
<span class="p-street-address">3 Charlotte Road</span>,
|
7
|
+
<span class="p-locality">City of London</span>,
|
8
|
+
<span class="p-postal-code">EC2A 3PE</span>,
|
9
|
+
<span class="p-country-name">UK</span>
|
10
|
+
</span> –
|
11
|
+
Geo:(<span class="p-geo">51.526421;-0.081067</span>)
|
12
|
+
</p>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-adr.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-adr"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["Bricklayer's Arms"],
|
8
|
+
"label": ["3 Charlotte Road, City of London, EC2A 3PE, UK"],
|
9
|
+
"street-address": ["3 Charlotte Road"],
|
10
|
+
"locality": ["City of London"],
|
11
|
+
"postal-code": ["EC2A 3PE"],
|
12
|
+
"country-name": ["UK"],
|
13
|
+
"geo": ["51.526421;-0.081067"]
|
14
|
+
}
|
15
|
+
}]
|
16
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-card.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-card"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["Rohit Khare"],
|
8
|
+
"photo": ["https://twimg0-a.akamaihd.net/profile_images/53307499/180px-Rohit-sq.jpg"],
|
9
|
+
"url": ["http://rohit.khare.org/"]
|
10
|
+
}
|
11
|
+
}]
|
12
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-card.html -->
|
2
|
+
|
3
|
+
<div class="h-card">
|
4
|
+
<img class="u-photo" alt="photo of Mitchell" src="http://blog.mozilla.org/press/files/2012/04/mitchell-baker.jpg"><p>
|
5
|
+
<a class="p-name u-url" href="http://blog.lizardwrangler.com/">Mitchell Baker</a>
|
6
|
+
(<a class="u-url" href="https://twitter.com/MitchellBaker">@MitchellBaker</a>)
|
7
|
+
<span class="p-org">Mozilla Foundation</span>
|
8
|
+
</p>
|
9
|
+
<p class="p-note">Mitchell is responsible for setting the direction and scope of the Mozilla Foundation and its activities.</p>
|
10
|
+
<p><span class="p-category">Strategy</span> and <span class="p-category">Leadership</span></p>
|
11
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-card.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-card"],
|
6
|
+
"properties": {
|
7
|
+
"photo": ["http://blog.mozilla.org/press/files/2012/04/mitchell-baker.jpg"],
|
8
|
+
"url": ["http://blog.lizardwrangler.com/", "https://twitter.com/MitchellBaker"],
|
9
|
+
"name": ["Mitchell Baker"],
|
10
|
+
"org": ["Mozilla Foundation"],
|
11
|
+
"note": ["Mitchell is responsible for setting the direction and scope of the Mozilla Foundation and its activities."],
|
12
|
+
"category": ["Strategy", "Leadership"]
|
13
|
+
}
|
14
|
+
}]
|
15
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-card.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-card"],
|
6
|
+
"properties": {
|
7
|
+
"url": ["http://blog.lizardwrangler.com/"],
|
8
|
+
"name": ["Mitchell Baker"],
|
9
|
+
"org": [{
|
10
|
+
"value": "Mozilla Foundation",
|
11
|
+
"type": ["h-card"],
|
12
|
+
"properties": {
|
13
|
+
"name": ["Mozilla Foundation"],
|
14
|
+
"url": ["http://mozilla.org/"]
|
15
|
+
}
|
16
|
+
}]
|
17
|
+
}
|
18
|
+
},{
|
19
|
+
"type": ["h-card"],
|
20
|
+
"properties": {
|
21
|
+
"name": ["Mozilla Foundation"],
|
22
|
+
"url": ["http://mozilla.org/"]
|
23
|
+
}
|
24
|
+
}]
|
25
|
+
}
|
26
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-card.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-card"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["Mitchell Baker"],
|
8
|
+
"url": ["http://blog.lizardwrangler.com/"],
|
9
|
+
"org": [{
|
10
|
+
"value": "Mozilla Foundation",
|
11
|
+
"type": ["h-card", "h-org"],
|
12
|
+
"properties": {
|
13
|
+
"name": ["Mozilla Foundation"],
|
14
|
+
"url": ["http://mozilla.org/"]
|
15
|
+
}
|
16
|
+
}]
|
17
|
+
}
|
18
|
+
},{
|
19
|
+
"type": ["h-card"],
|
20
|
+
"properties": {
|
21
|
+
"name": ["Mozilla Foundation"],
|
22
|
+
"url": ["http://mozilla.org/"]
|
23
|
+
}
|
24
|
+
},{
|
25
|
+
"type": ["h-org"],
|
26
|
+
"properties": {
|
27
|
+
"name": ["Mozilla Foundation"]
|
28
|
+
}
|
29
|
+
}]
|
30
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-card.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-card"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["Mitchell Baker"],
|
8
|
+
"url": ["http://blog.lizardwrangler.com/"]
|
9
|
+
},
|
10
|
+
"children": [{
|
11
|
+
"type": ["h-card", "h-org"],
|
12
|
+
"properties": {
|
13
|
+
"name": ["Mozilla Foundation"],
|
14
|
+
"url": ["http://mozilla.org/"]
|
15
|
+
}
|
16
|
+
}]
|
17
|
+
},{
|
18
|
+
"type": ["h-card"],
|
19
|
+
"properties": {
|
20
|
+
"name": ["Mozilla Foundation"],
|
21
|
+
"url": ["http://mozilla.org/"]
|
22
|
+
}
|
23
|
+
},{
|
24
|
+
"type": ["h-org"],
|
25
|
+
"properties": {
|
26
|
+
"name": ["Mozilla Foundation"]
|
27
|
+
}
|
28
|
+
}]
|
29
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-card.html -->
|
2
|
+
|
3
|
+
<div class="h-card">
|
4
|
+
<!-- innerText and value pattern -->
|
5
|
+
<span class="p-name">
|
6
|
+
<span class="p-given-name value">John</span>
|
7
|
+
<abbr class="p-additional-name" title="Peter">P</abbr>
|
8
|
+
<span class="p-family-name value ">Doe</span>
|
9
|
+
</span>
|
10
|
+
<data class="p-honorific-suffix" value="MSc"></data><!-- theses should return no value --><br class="p-honorific-suffix">BSc
|
11
|
+
<hr class="p-honorific-suffix">BA
|
12
|
+
|
13
|
+
<!-- image and area tags -->
|
14
|
+
<img class="p-honorific-suffix" src="images/logo.gif" alt="PHD"><img src="images/logo.gif" alt="company logos" usemap="#logomap"><map name="logomap"><area class="p-org" shape="rect" coords="0,0,82,126" href="madgex.htm" alt="Madgex">
|
15
|
+
<area class="p-org" shape="circle" coords="90,58,3" href="mozilla.htm" alt="Mozilla"></map>
|
16
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-card.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-card"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["John Doe"],
|
8
|
+
"given-name": ["John"],
|
9
|
+
"additional-name": ["Peter"],
|
10
|
+
"family-name": ["Doe"],
|
11
|
+
"honorific-suffix": ["MSc","PHD"],
|
12
|
+
"org": ["Madgex", "Mozilla"]
|
13
|
+
}
|
14
|
+
}]
|
15
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-entry.html -->
|
2
|
+
|
3
|
+
<div class="h-entry">
|
4
|
+
<h1><a class="p-name u-url" href="http://microformats.org/2012/06/25/microformats-org-at-7">microformats.org at 7</a></h1>
|
5
|
+
<div class="e-content">
|
6
|
+
<p class="p-summary">Last week the microformats.org community
|
7
|
+
celebrated its 7th birthday at a gathering hosted by Mozilla in
|
8
|
+
San Francisco and recognized accomplishments, challenges, and
|
9
|
+
opportunities.</p>
|
10
|
+
|
11
|
+
<p>The microformats tagline “humans first, machines second”
|
12
|
+
forms the basis of many of our
|
13
|
+
<a href="http://microformats.org/wiki/principles">principles</a>, and
|
14
|
+
in that regard, we’d like to recognize a few people and
|
15
|
+
thank them for their years of volunteer service </p>
|
16
|
+
</div>
|
17
|
+
<p>Updated
|
18
|
+
<time class="dt-updated" datetime="2012-06-25T17:08:26">June 25th, 2012</time> by
|
19
|
+
<a class="p-author h-card" href="http://tantek.com/">Tantek</a>
|
20
|
+
</p>
|
21
|
+
</div>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-entry.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-entry"],
|
6
|
+
"properties": {
|
7
|
+
"url": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
|
8
|
+
"name": ["microformats.org at 7"],
|
9
|
+
"content": ["\n <p class=\"p-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.</p>\n\n <p>The microformats tagline “humans first, machines second” \n forms the basis of many of our \n <a href=\"http://microformats.org/wiki/principles\">principles</a>, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service </p>\n "],
|
10
|
+
"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."],
|
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
|
+
"type": ["h-card"],
|
23
|
+
"properties": {
|
24
|
+
"name": ["Tantek"],
|
25
|
+
"url": ["http://tantek.com/"]
|
26
|
+
}
|
27
|
+
}]
|
28
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-entry.html -->
|
2
|
+
|
3
|
+
<div class="h-entry">
|
4
|
+
<p class="p-name">microformats.org at 7</p>
|
5
|
+
|
6
|
+
<!-- value and value-title patterns -->
|
7
|
+
<p class="u-url">
|
8
|
+
<span class="value-title" title="http://microformats.org/"> </span>
|
9
|
+
Article permalink
|
10
|
+
</p>
|
11
|
+
<p class="u-url">
|
12
|
+
<span class="value">http://microformats.org/</span> -
|
13
|
+
<span class="value">2012/06/25/microformats-org-at-7</span>
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p><a class="u-url" href="http://microformats.org/2012/06/25/microformats-org-at-7">Article permalink</a></p>
|
17
|
+
|
18
|
+
<img src="images/logo.gif" alt="company logos" usemap="#logomap"><map name="logomap"><area class="u-url" shape="rect" coords="0,0,82,126" href="http://microformats.org/" alt="microformats.org"></map><img class="u-photo" src="images/logo.gif" alt="company logos"><object class="u-url" data="http://microformats.org/wiki/microformats2-parsing"></object>
|
19
|
+
|
20
|
+
<abbr class="u-url" title="http://microformats.org/wiki/value-class-pattern">value-class-pattern</abbr>
|
21
|
+
<data class="u-url" value="http://microformats.org/wiki/"></data><p class="u-url">http://microformats.org/discuss</p>
|
22
|
+
</div>
|