microformats 0.3 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/Guardfile +5 -0
- data/LICENSE.md +36 -0
- data/README.md +228 -0
- data/Rakefile +7 -25
- data/lib/microformats.rb +25 -9
- data/lib/microformats/absolute_uri.rb +30 -0
- data/lib/microformats/format_parser.rb +343 -0
- data/lib/microformats/parser.rb +105 -0
- data/lib/microformats/parser_core.rb +343 -0
- data/lib/microformats/property_parser.rb +122 -0
- data/lib/microformats/results/collection.rb +121 -0
- data/lib/microformats/results/parser_result.rb +111 -0
- data/lib/microformats/results/property_set.rb +87 -0
- data/lib/microformats/time_property_parser.rb +161 -0
- data/lib/microformats/version.rb +3 -0
- data/microformats.gemspec +37 -0
- data/spec/lib/microformats/absolute_uri_spec.rb +48 -0
- data/spec/lib/microformats/parser_spec.rb +72 -0
- data/spec/lib/microformats_spec.rb +33 -0
- data/spec/spec_helper.rb +10 -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/microformats/implied_property/name-fail.html +60 -0
- data/spec/support/lib/microformats/implied_property/name-pass.html +30 -0
- data/spec/support/lib/microformats/implied_property/photo-fail.html +60 -0
- data/spec/support/lib/microformats/implied_property/photo-pass.html +30 -0
- data/spec/support/lib/microformats/implied_property/url-fail.html +18 -0
- data/spec/support/lib/microformats/implied_property/url-pass.html +12 -0
- data/spec/support/lib/microformats/implied_property/url-relative.html +13 -0
- data/spec/support/lib/microformats/implied_property/url-unnormalized.html +12 -0
- data/spec/support/lib/microformats/nested-format-with-property-of-same-name.html +13 -0
- data/spec/support/lib/microformats/nested-format-with-property-of-same-name.js +16 -0
- data/spec/support/lib/microformats/nested-format-with-property.html +12 -0
- data/spec/support/lib/microformats/nested-format-with-property.js +16 -0
- data/spec/support/lib/microformats/nested-format-without-property.html +13 -0
- data/spec/support/lib/microformats/nested-property.html +12 -0
- data/spec/support/lib/microformats/nested-property.js +10 -0
- data/spec/support/lib/microformats/rels-that-drop-the-base.html +11 -0
- data/spec/support/lib/microformats/rels-with-unnormalized-urls.html +11 -0
- data/spec/support/lib/microformats/rels.html +12 -0
- data/spec/support/lib/microformats/rels.js +13 -0
- data/spec/support/lib/microformats/simple.html +23 -0
- data/spec/support/lib/microformats/simple.js +11 -0
- data/vendor/tests/.gitignore +25 -0
- data/vendor/tests/LICENSE.md +36 -0
- data/vendor/tests/README.md +48 -0
- data/vendor/tests/app.js +84 -0
- data/vendor/tests/composer.json +5 -0
- data/vendor/tests/css/testsuite.css +159 -0
- data/vendor/tests/interface.js +18 -0
- data/vendor/tests/package.json +27 -0
- data/vendor/tests/tests/microformats-mixed/h-card/change-log.html +63 -0
- data/vendor/tests/tests/microformats-mixed/h-card/mixedpropertries.html +14 -0
- data/vendor/tests/tests/microformats-mixed/h-card/mixedpropertries.json +22 -0
- data/vendor/tests/tests/microformats-mixed/h-card/tworoots.html +1 -0
- data/vendor/tests/tests/microformats-mixed/h-card/tworoots.json +10 -0
- data/vendor/tests/tests/microformats-mixed/h-entry/mixedroots.html +16 -0
- data/vendor/tests/tests/microformats-mixed/h-entry/mixedroots.json +38 -0
- data/vendor/tests/tests/microformats-mixed/h-resume/change-log.html +68 -0
- data/vendor/tests/tests/microformats-mixed/h-resume/mixedroots.html +16 -0
- data/vendor/tests/tests/microformats-mixed/h-resume/mixedroots.json +31 -0
- data/vendor/tests/tests/microformats-v1/adr/change-log.html +63 -0
- data/vendor/tests/tests/microformats-v1/adr/simpleproperties.html +8 -0
- data/vendor/tests/tests/microformats-v1/adr/simpleproperties.json +15 -0
- data/vendor/tests/tests/microformats-v1/geo/abbrpattern.html +5 -0
- data/vendor/tests/tests/microformats-v1/geo/abbrpattern.json +11 -0
- data/vendor/tests/tests/microformats-v1/geo/change-log.1.html +78 -0
- data/vendor/tests/tests/microformats-v1/geo/change-log.html +63 -0
- data/vendor/tests/tests/microformats-v1/geo/hidden.html +10 -0
- data/vendor/tests/tests/microformats-v1/geo/hidden.json +11 -0
- data/vendor/tests/tests/microformats-v1/geo/simpleproperties.html +6 -0
- data/vendor/tests/tests/microformats-v1/geo/simpleproperties.json +11 -0
- data/vendor/tests/tests/microformats-v1/geo/valuetitleclass.html +11 -0
- data/vendor/tests/tests/microformats-v1/geo/valuetitleclass.json +11 -0
- data/vendor/tests/tests/microformats-v1/hcalendar/ampm.html +41 -0
- data/vendor/tests/tests/microformats-v1/hcalendar/ampm.json +21 -0
- data/vendor/tests/tests/microformats-v1/hcalendar/attendees.html +13 -0
- data/vendor/tests/tests/microformats-v1/hcalendar/attendees.json +37 -0
- data/vendor/tests/tests/microformats-v1/hcalendar/change-log.html +68 -0
- data/vendor/tests/tests/microformats-v1/hcalendar/combining.html +15 -0
- data/vendor/tests/tests/microformats-v1/hcalendar/combining.json +31 -0
- data/vendor/tests/tests/microformats-v1/hcalendar/concatenate.html +7 -0
- data/vendor/tests/tests/microformats-v1/hcalendar/concatenate.json +12 -0
- data/vendor/tests/tests/microformats-v1/hcalendar/time.html +44 -0
- data/vendor/tests/tests/microformats-v1/hcalendar/time.json +22 -0
- data/vendor/tests/tests/microformats-v1/hcard/change-log.html +68 -0
- data/vendor/tests/tests/microformats-v1/hcard/email.html +14 -0
- data/vendor/tests/tests/microformats-v1/hcard/email.json +11 -0
- data/vendor/tests/tests/microformats-v1/hcard/format.html +6 -0
- data/vendor/tests/tests/microformats-v1/hcard/format.json +11 -0
- data/vendor/tests/tests/microformats-v1/hcard/hyperlinkedphoto.html +3 -0
- data/vendor/tests/tests/microformats-v1/hcard/hyperlinkedphoto.json +8 -0
- data/vendor/tests/tests/microformats-v1/hcard/justahyperlink.html +1 -0
- data/vendor/tests/tests/microformats-v1/hcard/justahyperlink.json +8 -0
- data/vendor/tests/tests/microformats-v1/hcard/justaname.html +1 -0
- data/vendor/tests/tests/microformats-v1/hcard/justaname.json +8 -0
- data/vendor/tests/tests/microformats-v1/hcard/multiple.html +74 -0
- data/vendor/tests/tests/microformats-v1/hcard/multiple.json +65 -0
- data/vendor/tests/tests/microformats-v1/hcard/name.html +11 -0
- data/vendor/tests/tests/microformats-v1/hcard/name.json +15 -0
- data/vendor/tests/tests/microformats-v1/hcard/single.html +14 -0
- data/vendor/tests/tests/microformats-v1/hcard/single.json +24 -0
- data/vendor/tests/tests/microformats-v1/hentry/change-log.html +73 -0
- data/vendor/tests/tests/microformats-v1/hentry/summarycontent.html +20 -0
- data/vendor/tests/tests/microformats-v1/hentry/summarycontent.json +24 -0
- data/vendor/tests/tests/microformats-v1/hfeed/simple.html +30 -0
- data/vendor/tests/tests/microformats-v1/hfeed/simple.json +49 -0
- data/vendor/tests/tests/microformats-v1/hnews/all.html +37 -0
- data/vendor/tests/tests/microformats-v1/hnews/all.json +74 -0
- data/vendor/tests/tests/microformats-v1/hnews/change-log.html +72 -0
- data/vendor/tests/tests/microformats-v1/hnews/minimum.html +25 -0
- data/vendor/tests/tests/microformats-v1/hnews/minimum.json +48 -0
- data/vendor/tests/tests/microformats-v1/hproduct/aggregate.html +26 -0
- data/vendor/tests/tests/microformats-v1/hproduct/aggregate.json +52 -0
- data/vendor/tests/tests/microformats-v1/hproduct/change-log.html +62 -0
- data/vendor/tests/tests/microformats-v1/hproduct/simpleproperties.html +13 -0
- data/vendor/tests/tests/microformats-v1/hproduct/simpleproperties.json +33 -0
- data/vendor/tests/tests/microformats-v1/hresume/affiliation.html +12 -0
- data/vendor/tests/tests/microformats-v1/hresume/affiliation.json +25 -0
- data/vendor/tests/tests/microformats-v1/hresume/change-log.html +73 -0
- data/vendor/tests/tests/microformats-v1/hresume/contact.html +18 -0
- data/vendor/tests/tests/microformats-v1/hresume/contact.json +32 -0
- data/vendor/tests/tests/microformats-v1/hresume/education.html +13 -0
- data/vendor/tests/tests/microformats-v1/hresume/education.json +29 -0
- data/vendor/tests/tests/microformats-v1/hresume/skill.html +12 -0
- data/vendor/tests/tests/microformats-v1/hresume/skill.json +33 -0
- data/vendor/tests/tests/microformats-v1/hresume/work.html +16 -0
- data/vendor/tests/tests/microformats-v1/hresume/work.json +30 -0
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/change-log.html +67 -0
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/hcard.html +18 -0
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/hcard.json +31 -0
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/justahyperlink.html +6 -0
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/justahyperlink.json +19 -0
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/vevent.html +13 -0
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/vevent.json +22 -0
- data/vendor/tests/tests/microformats-v1/hreview/change-log.html +73 -0
- data/vendor/tests/tests/microformats-v1/hreview/item.html +8 -0
- data/vendor/tests/tests/microformats-v1/hreview/item.json +19 -0
- data/vendor/tests/tests/microformats-v1/hreview/vcard.html +23 -0
- data/vendor/tests/tests/microformats-v1/hreview/vcard.json +58 -0
- data/vendor/tests/tests/microformats-v1/includes/change-log.html +72 -0
- data/vendor/tests/tests/microformats-v1/includes/hcarditemref.html +16 -0
- data/vendor/tests/tests/microformats-v1/includes/hcarditemref.json +49 -0
- data/vendor/tests/tests/microformats-v1/includes/heventitemref.html +25 -0
- data/vendor/tests/tests/microformats-v1/includes/heventitemref.json +33 -0
- data/vendor/tests/tests/microformats-v1/includes/hyperlink.html +18 -0
- data/vendor/tests/tests/microformats-v1/includes/hyperlink.json +43 -0
- data/vendor/tests/tests/microformats-v1/includes/object.html +23 -0
- data/vendor/tests/tests/microformats-v1/includes/object.json +42 -0
- data/vendor/tests/tests/microformats-v1/includes/table.html +12 -0
- data/vendor/tests/tests/microformats-v1/includes/table.json +19 -0
- data/vendor/tests/tests/microformats-v2/h-adr/change-log.html +62 -0
- data/vendor/tests/tests/microformats-v2/h-adr/geo.html +10 -0
- data/vendor/tests/tests/microformats-v2/h-adr/geo.json +16 -0
- data/vendor/tests/tests/microformats-v2/h-adr/geourl.html +4 -0
- data/vendor/tests/tests/microformats-v2/h-adr/geourl.json +13 -0
- data/vendor/tests/tests/microformats-v2/h-adr/justaname.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-adr/justaname.json +10 -0
- data/vendor/tests/tests/microformats-v2/h-adr/lettercase.html +21 -0
- data/vendor/tests/tests/microformats-v2/h-adr/lettercase.json +12 -0
- data/vendor/tests/tests/microformats-v2/h-adr/simpleproperties.html +8 -0
- data/vendor/tests/tests/microformats-v2/h-adr/simpleproperties.json +16 -0
- data/vendor/tests/tests/microformats-v2/h-as-note/note.html +56 -0
- data/vendor/tests/tests/microformats-v2/h-as-note/note.json +98 -0
- data/vendor/tests/tests/microformats-v2/h-card/baseurl.html +6 -0
- data/vendor/tests/tests/microformats-v2/h-card/baseurl.json +26 -0
- data/vendor/tests/tests/microformats-v2/h-card/change-log.html +100 -0
- data/vendor/tests/tests/microformats-v2/h-card/childimplied.html +7 -0
- data/vendor/tests/tests/microformats-v2/h-card/childimplied.json +12 -0
- data/vendor/tests/tests/microformats-v2/h-card/extendeddescription.html +10 -0
- data/vendor/tests/tests/microformats-v2/h-card/extendeddescription.json +15 -0
- data/vendor/tests/tests/microformats-v2/h-card/hcard.html +4 -0
- data/vendor/tests/tests/microformats-v2/h-card/hcard.json +19 -0
- data/vendor/tests/tests/microformats-v2/h-card/horghcard.html +4 -0
- data/vendor/tests/tests/microformats-v2/h-card/horghcard.json +19 -0
- data/vendor/tests/tests/microformats-v2/h-card/hyperlinkedphoto.html +3 -0
- data/vendor/tests/tests/microformats-v2/h-card/hyperlinkedphoto.json +12 -0
- data/vendor/tests/tests/microformats-v2/h-card/impliedname.html +15 -0
- data/vendor/tests/tests/microformats-v2/h-card/impliedname.json +90 -0
- data/vendor/tests/tests/microformats-v2/h-card/impliedphoto.html +11 -0
- data/vendor/tests/tests/microformats-v2/h-card/impliedphoto.json +72 -0
- data/vendor/tests/tests/microformats-v2/h-card/impliedurl.html +5 -0
- data/vendor/tests/tests/microformats-v2/h-card/impliedurl.json +45 -0
- data/vendor/tests/tests/microformats-v2/h-card/justahyperlink.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-card/justahyperlink.json +11 -0
- data/vendor/tests/tests/microformats-v2/h-card/justaname.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-card/justaname.json +10 -0
- data/vendor/tests/tests/microformats-v2/h-card/nested.html +4 -0
- data/vendor/tests/tests/microformats-v2/h-card/nested.json +18 -0
- data/vendor/tests/tests/microformats-v2/h-card/p-property.html +21 -0
- data/vendor/tests/tests/microformats-v2/h-card/p-property.json +15 -0
- data/vendor/tests/tests/microformats-v2/h-card/relativeurls.html +6 -0
- data/vendor/tests/tests/microformats-v2/h-card/relativeurls.json +29 -0
- data/vendor/tests/tests/microformats-v2/h-entry/change-log.html +90 -0
- data/vendor/tests/tests/microformats-v2/h-entry/encoding.html +3 -0
- data/vendor/tests/tests/microformats-v2/h-entry/encoding.json +14 -0
- data/vendor/tests/tests/microformats-v2/h-entry/impliedvalue-nested.html +9 -0
- data/vendor/tests/tests/microformats-v2/h-entry/impliedvalue-nested.json +27 -0
- data/vendor/tests/tests/microformats-v2/h-entry/justahyperlink.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-entry/justahyperlink.json +11 -0
- data/vendor/tests/tests/microformats-v2/h-entry/justaname.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-entry/justaname.json +10 -0
- data/vendor/tests/tests/microformats-v2/h-entry/scriptstyletags.html +4 -0
- data/vendor/tests/tests/microformats-v2/h-entry/scriptstyletags.json +14 -0
- data/vendor/tests/tests/microformats-v2/h-entry/summarycontent.html +20 -0
- data/vendor/tests/tests/microformats-v2/h-entry/summarycontent.json +25 -0
- data/vendor/tests/tests/microformats-v2/h-entry/u-property.html +33 -0
- data/vendor/tests/tests/microformats-v2/h-entry/u-property.json +12 -0
- data/vendor/tests/tests/microformats-v2/h-entry/urlincontent.html +13 -0
- data/vendor/tests/tests/microformats-v2/h-entry/urlincontent.json +14 -0
- data/vendor/tests/tests/microformats-v2/h-event/ampm.html +41 -0
- data/vendor/tests/tests/microformats-v2/h-event/ampm.json +21 -0
- data/vendor/tests/tests/microformats-v2/h-event/attendees.html +13 -0
- data/vendor/tests/tests/microformats-v2/h-event/attendees.json +37 -0
- data/vendor/tests/tests/microformats-v2/h-event/change-log.html +82 -0
- data/vendor/tests/tests/microformats-v2/h-event/combining.html +13 -0
- data/vendor/tests/tests/microformats-v2/h-event/combining.json +25 -0
- data/vendor/tests/tests/microformats-v2/h-event/concatenate.html +8 -0
- data/vendor/tests/tests/microformats-v2/h-event/concatenate.json +12 -0
- data/vendor/tests/tests/microformats-v2/h-event/dates.html +13 -0
- data/vendor/tests/tests/microformats-v2/h-event/dates.json +26 -0
- data/vendor/tests/tests/microformats-v2/h-event/dt-property.html +23 -0
- data/vendor/tests/tests/microformats-v2/h-event/dt-property.json +20 -0
- data/vendor/tests/tests/microformats-v2/h-event/justahyperlink.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-event/justahyperlink.json +11 -0
- data/vendor/tests/tests/microformats-v2/h-event/justaname.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-event/justaname.json +10 -0
- data/vendor/tests/tests/microformats-v2/h-event/time.html +47 -0
- data/vendor/tests/tests/microformats-v2/h-event/time.json +25 -0
- data/vendor/tests/tests/microformats-v2/h-feed/implied-title.html +30 -0
- data/vendor/tests/tests/microformats-v2/h-feed/implied-title.json +23 -0
- data/vendor/tests/tests/microformats-v2/h-feed/simple.html +26 -0
- data/vendor/tests/tests/microformats-v2/h-feed/simple.json +33 -0
- data/vendor/tests/tests/microformats-v2/h-geo/abbrpattern.html +5 -0
- data/vendor/tests/tests/microformats-v2/h-geo/abbrpattern.json +12 -0
- data/vendor/tests/tests/microformats-v2/h-geo/altitude.html +8 -0
- data/vendor/tests/tests/microformats-v2/h-geo/altitude.json +13 -0
- data/vendor/tests/tests/microformats-v2/h-geo/change-log.html +67 -0
- data/vendor/tests/tests/microformats-v2/h-geo/hidden.html +10 -0
- data/vendor/tests/tests/microformats-v2/h-geo/hidden.json +12 -0
- data/vendor/tests/tests/microformats-v2/h-geo/justaname.html +3 -0
- data/vendor/tests/tests/microformats-v2/h-geo/justaname.json +10 -0
- data/vendor/tests/tests/microformats-v2/h-geo/simpleproperties.html +5 -0
- data/vendor/tests/tests/microformats-v2/h-geo/simpleproperties.json +12 -0
- data/vendor/tests/tests/microformats-v2/h-geo/valuetitleclass.html +11 -0
- data/vendor/tests/tests/microformats-v2/h-geo/valuetitleclass.json +12 -0
- data/vendor/tests/tests/microformats-v2/h-news/all.html +35 -0
- data/vendor/tests/tests/microformats-v2/h-news/all.json +51 -0
- data/vendor/tests/tests/microformats-v2/h-news/change-log.html +78 -0
- data/vendor/tests/tests/microformats-v2/h-news/minimum.html +24 -0
- data/vendor/tests/tests/microformats-v2/h-news/minimum.json +40 -0
- data/vendor/tests/tests/microformats-v2/h-org/change-log.html +57 -0
- data/vendor/tests/tests/microformats-v2/h-org/hyperlink.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-org/hyperlink.json +11 -0
- data/vendor/tests/tests/microformats-v2/h-org/simple.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-org/simple.json +10 -0
- data/vendor/tests/tests/microformats-v2/h-org/simpleproperties.html +4 -0
- data/vendor/tests/tests/microformats-v2/h-org/simpleproperties.json +12 -0
- data/vendor/tests/tests/microformats-v2/h-product/aggregate.html +21 -0
- data/vendor/tests/tests/microformats-v2/h-product/aggregate.json +45 -0
- data/vendor/tests/tests/microformats-v2/h-product/change-log.html +62 -0
- data/vendor/tests/tests/microformats-v2/h-product/justahyperlink.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-product/justahyperlink.json +11 -0
- data/vendor/tests/tests/microformats-v2/h-product/justaname.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-product/justaname.json +10 -0
- data/vendor/tests/tests/microformats-v2/h-product/simpleproperties.html +10 -0
- data/vendor/tests/tests/microformats-v2/h-product/simpleproperties.json +26 -0
- data/vendor/tests/tests/microformats-v2/h-recipe/all.html +63 -0
- data/vendor/tests/tests/microformats-v2/h-recipe/all.json +54 -0
- data/vendor/tests/tests/microformats-v2/h-recipe/change-log.html +62 -0
- data/vendor/tests/tests/microformats-v2/h-recipe/minimum.html +7 -0
- data/vendor/tests/tests/microformats-v2/h-recipe/minimum.json +17 -0
- data/vendor/tests/tests/microformats-v2/h-resume/affiliation.html +12 -0
- data/vendor/tests/tests/microformats-v2/h-resume/affiliation.json +20 -0
- data/vendor/tests/tests/microformats-v2/h-resume/change-log.html +78 -0
- data/vendor/tests/tests/microformats-v2/h-resume/contact.html +17 -0
- data/vendor/tests/tests/microformats-v2/h-resume/contact.json +26 -0
- data/vendor/tests/tests/microformats-v2/h-resume/education.html +13 -0
- data/vendor/tests/tests/microformats-v2/h-resume/education.json +30 -0
- data/vendor/tests/tests/microformats-v2/h-resume/justaname.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-resume/justaname.json +10 -0
- data/vendor/tests/tests/microformats-v2/h-resume/skill.html +12 -0
- data/vendor/tests/tests/microformats-v2/h-resume/skill.json +12 -0
- data/vendor/tests/tests/microformats-v2/h-resume/work.html +16 -0
- data/vendor/tests/tests/microformats-v2/h-resume/work.json +31 -0
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/change-log.html +78 -0
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/hevent.html +13 -0
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/hevent.json +23 -0
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/justahyperlink.html +8 -0
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/justahyperlink.json +19 -0
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/simpleproperties.html +18 -0
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/simpleproperties.json +26 -0
- data/vendor/tests/tests/microformats-v2/h-review/change-log.html +84 -0
- data/vendor/tests/tests/microformats-v2/h-review/hyperlink.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-review/hyperlink.json +11 -0
- data/vendor/tests/tests/microformats-v2/h-review/implieditem.html +4 -0
- data/vendor/tests/tests/microformats-v2/h-review/implieditem.json +19 -0
- data/vendor/tests/tests/microformats-v2/h-review/item.html +8 -0
- data/vendor/tests/tests/microformats-v2/h-review/item.json +20 -0
- data/vendor/tests/tests/microformats-v2/h-review/justaname.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-review/justaname.json +10 -0
- data/vendor/tests/tests/microformats-v2/h-review/photo.html +1 -0
- data/vendor/tests/tests/microformats-v2/h-review/photo.json +11 -0
- data/vendor/tests/tests/microformats-v2/h-review/vcard.html +23 -0
- data/vendor/tests/tests/microformats-v2/h-review/vcard.json +48 -0
- data/vendor/tests/tests/microformats-v2/rel/change-log.html +67 -0
- data/vendor/tests/tests/microformats-v2/rel/duplicate-rels.html +10 -0
- data/vendor/tests/tests/microformats-v2/rel/duplicate-rels.json +75 -0
- data/vendor/tests/tests/microformats-v2/rel/license.html +1 -0
- data/vendor/tests/tests/microformats-v2/rel/license.json +12 -0
- data/vendor/tests/tests/microformats-v2/rel/nofollow.html +1 -0
- data/vendor/tests/tests/microformats-v2/rel/nofollow.json +12 -0
- data/vendor/tests/tests/microformats-v2/rel/rel-urls.html +8 -0
- data/vendor/tests/tests/microformats-v2/rel/rel-urls.json +33 -0
- data/vendor/tests/tests/microformats-v2/rel/varying-text-duplicate-rels.html +4 -0
- data/vendor/tests/tests/microformats-v2/rel/varying-text-duplicate-rels.json +20 -0
- data/vendor/tests/tests/microformats-v2/rel/xfn-all.html +19 -0
- data/vendor/tests/tests/microformats-v2/rel/xfn-all.json +92 -0
- data/vendor/tests/tests/microformats-v2/rel/xfn-elsewhere.html +10 -0
- data/vendor/tests/tests/microformats-v2/rel/xfn-elsewhere.json +40 -0
- metadata +533 -57
- data/CHANGELOG.rdoc +0 -6
- data/LICENSE +0 -20
- data/README.rdoc +0 -147
- data/lib/address.rb +0 -97
- data/lib/calendar.rb +0 -40
- data/lib/event.rb +0 -156
- data/lib/formatting_helpers.rb +0 -57
- data/lib/helpers.rb +0 -74
- data/lib/vcard.rb +0 -177
@@ -0,0 +1,62 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<title>hproduct parsing tests</title>
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="../../../css/testsuite.css">
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css">
|
9
|
+
|
10
|
+
<script src="../../../javascript/prettify.js"></script>
|
11
|
+
<script src="../../../javascript/testsuite.js"></script>
|
12
|
+
|
13
|
+
</head>
|
14
|
+
<body class="h-feed">
|
15
|
+
|
16
|
+
<h1 class="p-name"><span class="p-x-format">hproduct</span> parsing tests ‐ change logs</h1>
|
17
|
+
|
18
|
+
<p class="p-description">The files in this directory where designed to test the parsing of hproduct. </p>
|
19
|
+
|
20
|
+
|
21
|
+
<h2>Change log:</h2>
|
22
|
+
<ul>
|
23
|
+
<!-- Add change log event to the top of this list as a h-entry -->
|
24
|
+
<li class="h-entry">
|
25
|
+
<span class="p-name e-content">Update text output to be textContent non-trimmed</span> ‐
|
26
|
+
<time class="dt-published" datetime="2015-05-29">29 May 2015</time>
|
27
|
+
by <span class="p-author">Glenn Jones</span>
|
28
|
+
</li>
|
29
|
+
<li class="h-entry">
|
30
|
+
<span class="p-name e-content">Broke old HTML format into small files to aid simpler testing</span> ‐
|
31
|
+
<time class="dt-published" datetime="2015-05-21">21 May 2015</time>
|
32
|
+
by <span class="p-author">Glenn Jones</span>
|
33
|
+
</li>
|
34
|
+
<li class="h-entry">
|
35
|
+
<span class="p-name e-content">Updated JSON examples so it always has the rel={} object as well as the items=[] array</span> ‐
|
36
|
+
<time class="dt-published" datetime="2013-11-21">21 November 2013</time>
|
37
|
+
by <span class="p-author">Glenn Jones</span>
|
38
|
+
</li>
|
39
|
+
<li class="h-entry">
|
40
|
+
<span class="p-name e-content">Created</span> ‐
|
41
|
+
<time class="dt-published" datetime="2013-01-14">14 January 2013</time>
|
42
|
+
by <span class="p-author">Glenn Jones</span>
|
43
|
+
</li>
|
44
|
+
</ul>
|
45
|
+
|
46
|
+
|
47
|
+
<h2>Contributors:</h2>
|
48
|
+
<ul>
|
49
|
+
<!-- If you Contribute to the test please add yourself as an author using p-author h-card -->
|
50
|
+
<li class="p-author h-card">
|
51
|
+
<a class="u-url p-name" rel="author" href="http://www.glennjones.net/">Glenn Jones</a>
|
52
|
+
</li>
|
53
|
+
</ul>
|
54
|
+
|
55
|
+
|
56
|
+
<footer>
|
57
|
+
All content and code is released into the <a href="http://en.wikipedia.org/wiki/public_domain">public domain</a>
|
58
|
+
</footer>
|
59
|
+
|
60
|
+
</body>
|
61
|
+
|
62
|
+
</html>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<meta charset="utf-8">
|
2
|
+
<div class="hproduct">
|
3
|
+
<h2 class="fn">Raspberry Pi</h2>
|
4
|
+
<img class="photo" src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg" />
|
5
|
+
<p class="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.</p>
|
6
|
+
<a class="url" href="http://www.raspberrypi.org/">More info about the Raspberry Pi</a>
|
7
|
+
<p class="price">£29.95</p>
|
8
|
+
<p class="review hreview"><span class="rating">4.5</span> out of 5</p>
|
9
|
+
<p>Categories:
|
10
|
+
<a rel="tag" href="http://en.wikipedia.org/wiki/computer" class="category">Computer</a>,
|
11
|
+
<a rel="tag" href="http://en.wikipedia.org/wiki/education" class="category">Education</a>
|
12
|
+
</p>
|
13
|
+
</div>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"items": [{
|
3
|
+
"type": ["h-product"],
|
4
|
+
"properties": {
|
5
|
+
"name": ["Raspberry Pi"],
|
6
|
+
"photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"],
|
7
|
+
"description": [ "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming." ],
|
8
|
+
"url": ["http://www.raspberrypi.org/"],
|
9
|
+
"price": ["£29.95"],
|
10
|
+
"category": ["Computer", "Education"],
|
11
|
+
"review": [{
|
12
|
+
"value": "4.5 out of 5",
|
13
|
+
"type": ["h-review"],
|
14
|
+
"properties": {
|
15
|
+
"rating": ["4.5"]
|
16
|
+
}
|
17
|
+
}]
|
18
|
+
}
|
19
|
+
}],
|
20
|
+
"rels": {
|
21
|
+
"tag": ["http://en.wikipedia.org/wiki/computer", "http://en.wikipedia.org/wiki/education"]
|
22
|
+
},
|
23
|
+
"rel-urls": {
|
24
|
+
"http://en.wikipedia.org/wiki/computer": {
|
25
|
+
"text": "Computer",
|
26
|
+
"rels": ["tag"]
|
27
|
+
},
|
28
|
+
"http://en.wikipedia.org/wiki/education": {
|
29
|
+
"text": "Education",
|
30
|
+
"rels": ["tag"]
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div class="hresume">
|
2
|
+
<p>
|
3
|
+
<span class="contact vcard"><span class="fn">Tim Berners-Lee</span></span>,
|
4
|
+
<span class="summary">invented the World Wide Web</span>.
|
5
|
+
</p>
|
6
|
+
Belongs to following groups:
|
7
|
+
<p>
|
8
|
+
<a class="affiliation vcard" href="http://www.w3.org/">
|
9
|
+
<img class="fn photo" alt="W3C" src="http://www.w3.org/Icons/WWW/w3c_home_nb.png" />
|
10
|
+
</a>
|
11
|
+
</p>
|
12
|
+
</div>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"items": [{
|
3
|
+
"type": ["h-resume"],
|
4
|
+
"properties": {
|
5
|
+
"contact": [{
|
6
|
+
"value": "Tim Berners-Lee",
|
7
|
+
"type": ["h-card"],
|
8
|
+
"properties": {
|
9
|
+
"name": ["Tim Berners-Lee"]
|
10
|
+
}
|
11
|
+
}],
|
12
|
+
"summary": ["invented the World Wide Web"],
|
13
|
+
"affiliation": [{
|
14
|
+
"value": "W3C",
|
15
|
+
"type": ["h-card"],
|
16
|
+
"properties": {
|
17
|
+
"name": ["W3C"],
|
18
|
+
"photo": ["http://www.w3.org/Icons/WWW/w3c_home_nb.png"]
|
19
|
+
}
|
20
|
+
}]
|
21
|
+
}
|
22
|
+
}],
|
23
|
+
"rels": {},
|
24
|
+
"rel-urls": {}
|
25
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<title>h-resume parsing tests</title>
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="../../../css/testsuite.css">
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css">
|
9
|
+
|
10
|
+
<script src="../../../javascript/prettify.js"></script>
|
11
|
+
<script src="../../../javascript/testsuite.js"></script>
|
12
|
+
|
13
|
+
</head>
|
14
|
+
<body class="h-feed">
|
15
|
+
|
16
|
+
<h1 class="p-name"><span class="p-x-format">h-resume</span> parsing tests ‐ change logs</h1>
|
17
|
+
|
18
|
+
<p class="p-description">The files in this directory where designed to test the parsing of hresume and its output to the newer JSON structure of micorformats 2. </p>
|
19
|
+
<p class="p-description">Theses are backwards compatibility tests for the older version 1 microformats specification. Please do not use this as a reference for authoring microformats.</p>
|
20
|
+
|
21
|
+
|
22
|
+
<h2>Change log:</h2>
|
23
|
+
<ul>
|
24
|
+
<!-- Add change log event to the top of this list as a h-entry -->
|
25
|
+
<li class="h-entry">
|
26
|
+
<span class="p-name e-content">Remove empty value property in the JSON of affiliation test</span> ‐
|
27
|
+
<time class="dt-published" datetime="2015-06-01">1 June 2015</time>
|
28
|
+
by <span class="p-author">Glenn Jones</span>
|
29
|
+
</li>
|
30
|
+
<li class="h-entry">
|
31
|
+
<span class="p-name e-content">Update text output to be textContent non-trimmed</span> ‐
|
32
|
+
<time class="dt-published" datetime="2015-05-29">29 May 2015</time>
|
33
|
+
by <span class="p-author">Glenn Jones</span>
|
34
|
+
</li>
|
35
|
+
<li class="h-entry">
|
36
|
+
<span class="p-name e-content">Broke old HTML format into small files to aid simpler testing</span> ‐
|
37
|
+
<time class="dt-published" datetime="2015-05-21">21 May 2015</time>
|
38
|
+
by <span class="p-author">Glenn Jones</span>
|
39
|
+
</li>
|
40
|
+
<li class="h-entry">
|
41
|
+
<span class="p-name e-content">Updated JSON examples so it always has the rel={} object as well as the items=[] array</span> ‐
|
42
|
+
<time class="dt-published" datetime="2013-11-21">21 November 2013</time>
|
43
|
+
by <span class="p-author">Glenn Jones</span>
|
44
|
+
</li>
|
45
|
+
<li class="h-entry">
|
46
|
+
<span class="p-name e-content">Removed competency tests</span> ‐
|
47
|
+
<time class="dt-published" datetime="2013-01-11">11 January 2013</time>
|
48
|
+
by <span class="p-author">Glenn Jones</span>
|
49
|
+
</li>
|
50
|
+
<li class="h-entry">
|
51
|
+
<span class="p-name e-content">Copied from version 1 test suite</span> ‐
|
52
|
+
<time class="dt-published" datetime="2013-01-07">7 January 2013</time>
|
53
|
+
by <span class="p-author">Glenn Jones</span>
|
54
|
+
</li>
|
55
|
+
</ul>
|
56
|
+
|
57
|
+
|
58
|
+
<h2>Contributors:</h2>
|
59
|
+
<ul>
|
60
|
+
<!-- If you Contribute to the test please add yourself as an author using p-author h-card -->
|
61
|
+
<li class="p-author h-card">
|
62
|
+
<a class="u-url p-name" rel="author" href="http://www.glennjones.net/">Glenn Jones</a>
|
63
|
+
</li>
|
64
|
+
</ul>
|
65
|
+
|
66
|
+
|
67
|
+
<footer>
|
68
|
+
All content and code is released into the <a href="http://en.wikipedia.org/wiki/public_domain">public domain</a>
|
69
|
+
</footer>
|
70
|
+
|
71
|
+
</body>
|
72
|
+
|
73
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<div class="hresume">
|
2
|
+
<div class="contact vcard">
|
3
|
+
<p class="fn">Tim Berners-Lee</p>
|
4
|
+
<p class="org">MIT</p>
|
5
|
+
<p class="adr">
|
6
|
+
<span class="street-address">32 Vassar Street</span>,
|
7
|
+
<span class="extended-address">Room 32-G524</span>,
|
8
|
+
<span class="locality">Cambridge</span>,
|
9
|
+
<span class="region">MA</span>
|
10
|
+
<span class="postal-code">02139</span>,
|
11
|
+
<span class="country-name">USA</span>.
|
12
|
+
(<span class="type">Work</span>)
|
13
|
+
</p>
|
14
|
+
<p>Tel:<span class="tel">+1 (617) 253 5702</span></p>
|
15
|
+
<p>Email:<a class="email" href="mailto:timbl@w3.org">timbl@w3.org</a></p>
|
16
|
+
</div>
|
17
|
+
<p class="summary">Invented the World Wide Web.</p>
|
18
|
+
</div>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"items": [{
|
3
|
+
"type": ["h-resume"],
|
4
|
+
"properties": {
|
5
|
+
"contact": [{
|
6
|
+
"value": "Tim Berners-Lee",
|
7
|
+
"type": ["h-card"],
|
8
|
+
"properties": {
|
9
|
+
"name": ["Tim Berners-Lee"],
|
10
|
+
"org": ["MIT"],
|
11
|
+
"adr": [{
|
12
|
+
"value": "32 Vassar Street, \n Room 32-G524, \n Cambridge, \n MA \n 02139, \n USA. \n (Work)",
|
13
|
+
"type": ["h-adr"],
|
14
|
+
"properties": {
|
15
|
+
"street-address": ["32 Vassar Street"],
|
16
|
+
"extended-address": ["Room 32-G524"],
|
17
|
+
"locality": ["Cambridge"],
|
18
|
+
"region": ["MA"],
|
19
|
+
"postal-code": ["02139"],
|
20
|
+
"country-name": ["USA"]
|
21
|
+
}
|
22
|
+
}],
|
23
|
+
"tel": ["+1 (617) 253 5702"],
|
24
|
+
"email": ["mailto:timbl@w3.org"]
|
25
|
+
}
|
26
|
+
}],
|
27
|
+
"summary": ["Invented the World Wide Web."]
|
28
|
+
}
|
29
|
+
}],
|
30
|
+
"rels": {},
|
31
|
+
"rel-urls": {}
|
32
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div class="hresume">
|
2
|
+
<div class="contact vcard">
|
3
|
+
<p class="fn">Tim Berners-Lee</p>
|
4
|
+
<p class="title">Director of the World Wide Web Foundation</p>
|
5
|
+
</div>
|
6
|
+
<p class="summary">Invented the World Wide Web.</p><hr />
|
7
|
+
<p class="education vevent vcard">
|
8
|
+
<span class="fn summary org">The Queen's College, Oxford University</span>,
|
9
|
+
<span class="description">BA Hons (I) Physics</span>
|
10
|
+
<time class="dtstart" datetime="1973-09">1973</time> –
|
11
|
+
<time class="dtend" datetime="1976-06">1976</time>
|
12
|
+
</p>
|
13
|
+
</div>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"items": [{
|
3
|
+
"type": ["h-resume"],
|
4
|
+
"properties": {
|
5
|
+
"contact": [{
|
6
|
+
"value": "Tim Berners-Lee",
|
7
|
+
"type": ["h-card"],
|
8
|
+
"properties": {
|
9
|
+
"name": ["Tim Berners-Lee"],
|
10
|
+
"job-title": ["Director of the World Wide Web Foundation"]
|
11
|
+
}
|
12
|
+
}],
|
13
|
+
"summary": ["Invented the World Wide Web."],
|
14
|
+
"education": [{
|
15
|
+
"value": "The Queen's College, Oxford University",
|
16
|
+
"type": ["h-event", "h-card"],
|
17
|
+
"properties": {
|
18
|
+
"name": ["The Queen's College, Oxford University"],
|
19
|
+
"org": ["The Queen's College, Oxford University"],
|
20
|
+
"description": ["BA Hons (I) Physics"],
|
21
|
+
"start": ["1973-09"],
|
22
|
+
"end": ["1976-06"]
|
23
|
+
}
|
24
|
+
}]
|
25
|
+
}
|
26
|
+
}],
|
27
|
+
"rels": {},
|
28
|
+
"rel-urls": {}
|
29
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div class="hresume">
|
2
|
+
<p>
|
3
|
+
<span class="contact vcard"><span class="fn">Tim Berners-Lee</span></span>,
|
4
|
+
<span class="summary">invented the World Wide Web</span>.
|
5
|
+
</p>
|
6
|
+
Skills:
|
7
|
+
<ul>
|
8
|
+
<li><a class="skill" rel="tag" href="http://example.com/skills/informationsystems">information systems</a></li>
|
9
|
+
<li><a class="skill" rel="tag" href="http://example.com/skills/advocacy">advocacy</a></li>
|
10
|
+
<li><a class="skill" rel="tag" href="http://example.com/skills/leadership">leadership</a></li>
|
11
|
+
</ul>
|
12
|
+
</div>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"items": [{
|
3
|
+
"type": ["h-resume"],
|
4
|
+
"properties": {
|
5
|
+
"contact": [{
|
6
|
+
"value": "Tim Berners-Lee",
|
7
|
+
"type": ["h-card"],
|
8
|
+
"properties": {
|
9
|
+
"name": ["Tim Berners-Lee"]
|
10
|
+
}
|
11
|
+
}],
|
12
|
+
"summary": ["invented the World Wide Web"],
|
13
|
+
"skill": ["information systems", "advocacy", "leadership"]
|
14
|
+
}
|
15
|
+
}],
|
16
|
+
"rels": {
|
17
|
+
"tag": ["http://example.com/skills/informationsystems", "http://example.com/skills/advocacy", "http://example.com/skills/leadership"]
|
18
|
+
},
|
19
|
+
"rel-urls": {
|
20
|
+
"http://example.com/skills/informationsystems": {
|
21
|
+
"text": "information systems",
|
22
|
+
"rels": ["tag"]
|
23
|
+
},
|
24
|
+
"http://example.com/skills/advocacy": {
|
25
|
+
"text": "advocacy",
|
26
|
+
"rels": ["tag"]
|
27
|
+
},
|
28
|
+
"http://example.com/skills/leadership": {
|
29
|
+
"text": "leadership",
|
30
|
+
"rels": ["tag"]
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<meta charset="utf-8">
|
2
|
+
<div class="hresume">
|
3
|
+
<div class="contact vcard">
|
4
|
+
<p class="fn">Tim Berners-Lee</p>
|
5
|
+
<p class="title">Director of the World Wide Web Foundation</p>
|
6
|
+
</div>
|
7
|
+
<p class="summary">Invented the World Wide Web.</p><hr />
|
8
|
+
<div class="experience vevent vcard">
|
9
|
+
<p class="title">Director</p>
|
10
|
+
<p><a class="fn summary org url" href="http://www.webfoundation.org/">World Wide Web Foundation</a></p>
|
11
|
+
<p>
|
12
|
+
<time class="dtstart" datetime="2009-01-18">Jan 2009</time> – Present
|
13
|
+
<time class="duration" datetime="P2Y11M">(2 years 11 month)</time>
|
14
|
+
</p>
|
15
|
+
</div>
|
16
|
+
</div>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"items": [{
|
3
|
+
"type": ["h-resume"],
|
4
|
+
"properties": {
|
5
|
+
"contact": [{
|
6
|
+
"value": "Tim Berners-Lee",
|
7
|
+
"type": ["h-card"],
|
8
|
+
"properties": {
|
9
|
+
"name": ["Tim Berners-Lee"],
|
10
|
+
"job-title": ["Director of the World Wide Web Foundation"]
|
11
|
+
}
|
12
|
+
}],
|
13
|
+
"summary": ["Invented the World Wide Web."],
|
14
|
+
"experience": [{
|
15
|
+
"value": "World Wide Web Foundation",
|
16
|
+
"type": ["h-event", "h-card"],
|
17
|
+
"properties": {
|
18
|
+
"job-title": ["Director"],
|
19
|
+
"name": ["World Wide Web Foundation"],
|
20
|
+
"org": ["World Wide Web Foundation"],
|
21
|
+
"url": ["http://www.webfoundation.org/"],
|
22
|
+
"start": ["2009-01-18"],
|
23
|
+
"duration": ["P2Y11M"]
|
24
|
+
}
|
25
|
+
}]
|
26
|
+
}
|
27
|
+
}],
|
28
|
+
"rels": {},
|
29
|
+
"rel-urls": {}
|
30
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<title>hreview-aggregate parsing tests</title>
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="../../../css/testsuite.css">
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css">
|
9
|
+
|
10
|
+
<script src="../../../javascript/prettify.js"></script>
|
11
|
+
<script src="../../../javascript/testsuite.js"></script>
|
12
|
+
|
13
|
+
</head>
|
14
|
+
<body class="h-feed">
|
15
|
+
|
16
|
+
<h1 class="p-name"><span class="p-x-format">hreview-aggregate</span> parsing tests ‐ change logs</h1>
|
17
|
+
|
18
|
+
<p class="p-description">The files in this directory where designed to test the parsing of hreview-aggregate. </p>
|
19
|
+
|
20
|
+
|
21
|
+
<h2>Change log:</h2>
|
22
|
+
<ul>
|
23
|
+
<!-- Add change log event to the top of this list as a h-entry -->
|
24
|
+
<li class="h-entry">
|
25
|
+
<span class="p-name e-content">Update text output to be textContent non-trimmed</span> ‐
|
26
|
+
<time class="dt-published" datetime="2015-06-01">1 June 2015</time>
|
27
|
+
by <span class="p-author">Glenn Jones</span>
|
28
|
+
</li>
|
29
|
+
<li class="h-entry">
|
30
|
+
<span class="p-name e-content">Update text output to be textContent non-trimmed</span> ‐
|
31
|
+
<time class="dt-published" datetime="2015-05-29">29 May 2015</time>
|
32
|
+
by <span class="p-author">Glenn Jones</span>
|
33
|
+
</li>
|
34
|
+
<li class="h-entry">
|
35
|
+
<span class="p-name e-content">Broke old HTML format into small files to aid simpler testing</span> ‐
|
36
|
+
<time class="dt-published" datetime="2015-05-21">21 May 2015</time>
|
37
|
+
by <span class="p-author">Glenn Jones</span>
|
38
|
+
</li>
|
39
|
+
<li class="h-entry">
|
40
|
+
<span class="p-name e-content">Updated JSON examples so it always has the rel={} object as well as the items=[] array</span> ‐
|
41
|
+
<time class="dt-published" datetime="2013-11-21">21 November 2013</time>
|
42
|
+
by <span class="p-author">Glenn Jones</span>
|
43
|
+
</li>
|
44
|
+
<li class="h-entry">
|
45
|
+
<span class="p-name e-content">Created</span> ‐
|
46
|
+
<time class="dt-published" datetime="2013-01-14">14 January 2013</time>
|
47
|
+
by <span class="p-author">Glenn Jones</span>
|
48
|
+
</li>
|
49
|
+
</ul>
|
50
|
+
|
51
|
+
|
52
|
+
<h2>Contributors:</h2>
|
53
|
+
<ul>
|
54
|
+
<!-- If you Contribute to the test please add yourself as an author using p-author h-card -->
|
55
|
+
<li class="p-author h-card">
|
56
|
+
<a class="u-url p-name" rel="author" href="http://www.glennjones.net/">Glenn Jones</a>
|
57
|
+
</li>
|
58
|
+
</ul>
|
59
|
+
|
60
|
+
|
61
|
+
<footer>
|
62
|
+
All content and code is released into the <a href="http://en.wikipedia.org/wiki/public_domain">public domain</a>
|
63
|
+
</footer>
|
64
|
+
|
65
|
+
</body>
|
66
|
+
|
67
|
+
</html>
|