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,21 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-entry.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-entry"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["microformats.org at 7"],
|
8
|
+
"url": [
|
9
|
+
"http://microformats.org/",
|
10
|
+
"http://microformats.org/2012/06/25/microformats-org-at-7",
|
11
|
+
"http://microformats.org/2012/06/25/microformats-org-at-7",
|
12
|
+
"http://microformats.org/",
|
13
|
+
"http://microformats.org/wiki/microformats2-parsing",
|
14
|
+
"http://microformats.org/wiki/value-class-pattern",
|
15
|
+
"http://microformats.org/wiki/",
|
16
|
+
"http://microformats.org/discuss"
|
17
|
+
],
|
18
|
+
"photo": ["http://example.com/images/logo.gif"]
|
19
|
+
}
|
20
|
+
}]
|
21
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-event.html -->
|
2
|
+
|
3
|
+
<div class="h-event">
|
4
|
+
<span class="p-name">CPJ Online Press Freedom Summit</span>
|
5
|
+
(<time class="dt-start" datetime="2012-10-10">10 Nov 2012</time>) in
|
6
|
+
<span class="p-location">San Francisco</span>.
|
7
|
+
Attendees:
|
8
|
+
<ul>
|
9
|
+
<li class="p-attendee h-card">Brian Warner</li>
|
10
|
+
<li class="p-attendee h-card">Kyle Machulis</li>
|
11
|
+
<li class="p-attendee h-card">Tantek Çelik</li>
|
12
|
+
<li class="p-attendee h-card">Sid Sutter</li>
|
13
|
+
</ul>
|
14
|
+
</div>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-event.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-event"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["CPJ Online Press Freedom Summit"],
|
8
|
+
"start": ["2012-10-10"],
|
9
|
+
"location": ["San Francisco"],
|
10
|
+
"attendee": [{
|
11
|
+
"value": "Brian Warner",
|
12
|
+
"type": ["h-card"],
|
13
|
+
"properties": {
|
14
|
+
"name": ["Brian Warner"]
|
15
|
+
}
|
16
|
+
},{
|
17
|
+
"value": "Kyle Machulis",
|
18
|
+
"type": ["h-card"],
|
19
|
+
"properties": {
|
20
|
+
"name": ["Kyle Machulis"]
|
21
|
+
}
|
22
|
+
},{
|
23
|
+
"value": "Tantek Çelik",
|
24
|
+
"type": ["h-card"],
|
25
|
+
"properties": {
|
26
|
+
"name": ["Tantek Çelik"]
|
27
|
+
}
|
28
|
+
},{
|
29
|
+
"value": "Sid Sutter",
|
30
|
+
"type": ["h-card"],
|
31
|
+
"properties": {
|
32
|
+
"name": ["Sid Sutter"]
|
33
|
+
}
|
34
|
+
}]
|
35
|
+
}
|
36
|
+
},{
|
37
|
+
"type": ["h-card"],
|
38
|
+
"properties": {
|
39
|
+
"name": ["Brian Warner"]
|
40
|
+
}
|
41
|
+
},{
|
42
|
+
"type": ["h-card"],
|
43
|
+
"properties": {
|
44
|
+
"name": ["Kyle Machulis"]
|
45
|
+
}
|
46
|
+
},{
|
47
|
+
"type": ["h-card"],
|
48
|
+
"properties": {
|
49
|
+
"name": ["Tantek Çelik"]
|
50
|
+
}
|
51
|
+
},{
|
52
|
+
"type": ["h-card"],
|
53
|
+
"properties": {
|
54
|
+
"name": ["Sid Sutter"]
|
55
|
+
}
|
56
|
+
}]
|
57
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-event.html -->
|
2
|
+
|
3
|
+
<div class="h-event">
|
4
|
+
<a class="p-name u-url" href="http://indiewebcamp.com/2012">
|
5
|
+
IndieWebCamp 2012
|
6
|
+
</a>
|
7
|
+
from <time class="dt-start">2012-06-30</time>
|
8
|
+
to <time class="dt-end">2012-07-01</time> at
|
9
|
+
<span class="p-location h-card">
|
10
|
+
<a class="p-name p-org u-url" href="http://geoloqi.com/">Geoloqi</a>,
|
11
|
+
<span class="p-street-address">920 SW 3rd Ave. Suite 400</span>,
|
12
|
+
<span class="p-locality">Portland</span>,
|
13
|
+
<abbr class="p-region" title="Oregon">OR</abbr>
|
14
|
+
</span>
|
15
|
+
</div>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-event.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-event"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["IndieWebCamp 2012"],
|
8
|
+
"url": ["http://indiewebcamp.com/2012"],
|
9
|
+
"start": ["2012-06-30"],
|
10
|
+
"end": ["2012-07-01"],
|
11
|
+
"location": [{
|
12
|
+
"value": "Geoloqi, 920 SW 3rd Ave. Suite 400, Portland, OR",
|
13
|
+
"type": ["h-card"],
|
14
|
+
"properties": {
|
15
|
+
"name": ["Geoloqi"],
|
16
|
+
"org": ["Geoloqi"],
|
17
|
+
"url": ["http://geoloqi.com/"],
|
18
|
+
"street-address": ["920 SW 3rd Ave. Suite 400"],
|
19
|
+
"locality": ["Portland"],
|
20
|
+
"region": ["Oregon"]
|
21
|
+
}
|
22
|
+
}]
|
23
|
+
}
|
24
|
+
},{
|
25
|
+
"type": ["h-card"],
|
26
|
+
"properties": {
|
27
|
+
"name": ["Geoloqi"],
|
28
|
+
"org": ["Geoloqi"],
|
29
|
+
"url": ["http://geoloqi.com/"],
|
30
|
+
"street-address": ["920 SW 3rd Ave. Suite 400"],
|
31
|
+
"locality": ["Portland"],
|
32
|
+
"region": ["Oregon"]
|
33
|
+
}
|
34
|
+
}]
|
35
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-event.html -->
|
2
|
+
|
3
|
+
<span class="h-event">
|
4
|
+
<span class="p-name">The 4th Microformat party</span> will be on
|
5
|
+
<span class="dt-start">
|
6
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
7
|
+
<time class="value">19:00</time></span> to
|
8
|
+
<span class="dt-end"><time class="value">22:00</time></span>.
|
9
|
+
</span>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-event.html -->
|
2
|
+
|
3
|
+
<span class="h-event">
|
4
|
+
<span class="p-name">The 4th Microformat party</span> will be on
|
5
|
+
<ul>
|
6
|
+
<li class="dt-start">
|
7
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
8
|
+
<time class="value">19:00:00-08:00</time>
|
9
|
+
</li>
|
10
|
+
<li class="dt-start">
|
11
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
12
|
+
<time class="value">19:00:00-0800</time>
|
13
|
+
</li>
|
14
|
+
<li class="dt-start">
|
15
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
16
|
+
<time class="value">19:00:00+0800</time>
|
17
|
+
</li>
|
18
|
+
<li class="dt-start">
|
19
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
20
|
+
<time class="value">19:00:00Z</time>
|
21
|
+
</li>
|
22
|
+
<li class="dt-start">
|
23
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
24
|
+
<time class="value">19:00:00</time>
|
25
|
+
</li>
|
26
|
+
<li class="dt-start">
|
27
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
28
|
+
<time class="value">19:00-08:00</time>
|
29
|
+
</li>
|
30
|
+
<li class="dt-start">
|
31
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
32
|
+
<time class="value">19:00+08:00</time>
|
33
|
+
</li>
|
34
|
+
<li class="dt-start">
|
35
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
36
|
+
<time class="value">19:00Z</time>
|
37
|
+
</li>
|
38
|
+
<li class="dt-start">
|
39
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
40
|
+
<time class="value">19:00</time>
|
41
|
+
</li>
|
42
|
+
<li>
|
43
|
+
<time class="dt-end" datetime="2013-034">3 February 2013</time>
|
44
|
+
</li>
|
45
|
+
</ul></span>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-event.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-event"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["The 4th Microformat party"],
|
8
|
+
"start": [
|
9
|
+
"2009-06-26T19:00:00-0800",
|
10
|
+
"2009-06-26T19:00:00-0800",
|
11
|
+
"2009-06-26T19:00:00+0800",
|
12
|
+
"2009-06-26T19:00:00Z",
|
13
|
+
"2009-06-26T19:00:00",
|
14
|
+
"2009-06-26T19:00:00-0800",
|
15
|
+
"2009-06-26T19:00:00+0800",
|
16
|
+
"2009-06-26T19:00:00Z",
|
17
|
+
"2009-06-26T19:00:00"
|
18
|
+
],
|
19
|
+
"end": ["2013-034"]
|
20
|
+
}
|
21
|
+
}]
|
22
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-event.html -->
|
2
|
+
|
3
|
+
<span class="h-event">
|
4
|
+
<span class="p-name">The 4th Microformat party</span> will be on
|
5
|
+
<ul>
|
6
|
+
<li class="dt-start">
|
7
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
8
|
+
<span class="value">07:00:00pm
|
9
|
+
</span>
|
10
|
+
</li>
|
11
|
+
<li class="dt-start">
|
12
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
13
|
+
<span class="value">07:00:00am
|
14
|
+
</span>
|
15
|
+
</li>
|
16
|
+
<li class="dt-start">
|
17
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
18
|
+
<span class="value">07:00pm
|
19
|
+
</span>
|
20
|
+
</li>
|
21
|
+
<li class="dt-start">
|
22
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
23
|
+
<span class="value">07pm
|
24
|
+
</span>
|
25
|
+
</li>
|
26
|
+
<li class="dt-start">
|
27
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
28
|
+
<span class="value">7pm
|
29
|
+
</span>
|
30
|
+
</li>
|
31
|
+
<li class="dt-start">
|
32
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
33
|
+
<span class="value">7:00pm
|
34
|
+
</span>
|
35
|
+
</li>
|
36
|
+
<li class="dt-start">
|
37
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
38
|
+
<span class="value">07:00p.m.
|
39
|
+
</span>
|
40
|
+
</li>
|
41
|
+
<li class="dt-start">
|
42
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
43
|
+
<span class="value">07:00PM
|
44
|
+
</span>
|
45
|
+
</li>
|
46
|
+
<li class="dt-start">
|
47
|
+
<time class="value" datetime="2009-06-26">26 July</time>, from
|
48
|
+
<span class="value">7:00am
|
49
|
+
</span>
|
50
|
+
</li>
|
51
|
+
</ul></span>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-event.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-event"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["The 4th Microformat party"],
|
8
|
+
"start": [
|
9
|
+
"2009-06-26T19:00:00",
|
10
|
+
"2009-06-26T07:00:00",
|
11
|
+
"2009-06-26T19:00:00",
|
12
|
+
"2009-06-26T19:00:00",
|
13
|
+
"2009-06-26T19:00:00",
|
14
|
+
"2009-06-26T19:00:00",
|
15
|
+
"2009-06-26T19:00:00",
|
16
|
+
"2009-06-26T19:00:00",
|
17
|
+
"2009-06-26T07:00:00"
|
18
|
+
]
|
19
|
+
}
|
20
|
+
}]
|
21
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-event.html -->
|
2
|
+
|
3
|
+
<span class="h-event">
|
4
|
+
<span class="p-name">The party</span> will be on
|
5
|
+
<!-- value and value-title patterns -->
|
6
|
+
<p class="dt-start">
|
7
|
+
<span class="value-title" title="2013-03-14"> </span>
|
8
|
+
March 14th 2013
|
9
|
+
</p>
|
10
|
+
<p class="dt-start">
|
11
|
+
<time class="value" datetime="2013-06-25">25 July</time>, from
|
12
|
+
<span class="value">07:00:00am
|
13
|
+
</span></p>
|
14
|
+
<!-- elements with datetime attribute -->
|
15
|
+
<p>
|
16
|
+
<time class="dt-start" datetime="2013-06-26">26 June</time><ins class="dt-start" datetime="2013-06-27">Just added</ins>,
|
17
|
+
<del class="dt-start" datetime="2013-06-28">Removed</del>
|
18
|
+
</p>
|
19
|
+
<abbr class="dt-start" title="2013-06-29">June 29</abbr>
|
20
|
+
<data class="dt-start" value="2013-07-01"></data><p class="dt-start">2013-07-02</p>
|
21
|
+
|
22
|
+
</span>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-event.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-event"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["The party"],
|
8
|
+
"start": [
|
9
|
+
"2013-03-14",
|
10
|
+
"2013-06-25T07:00:00",
|
11
|
+
"2013-06-26",
|
12
|
+
"2013-06-27",
|
13
|
+
"2013-06-28",
|
14
|
+
"2013-06-29",
|
15
|
+
"2013-07-01",
|
16
|
+
"2013-07-02"
|
17
|
+
]
|
18
|
+
}
|
19
|
+
}]
|
20
|
+
}
|