microformats 4.0.7 → 4.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +10 -0
- data/.gitignore +33 -15
- data/.rspec +3 -2
- data/.rubocop +3 -0
- data/.rubocop.yml +25 -0
- data/.ruby-version +1 -0
- data/.simplecov +11 -0
- data/.travis.yml +14 -2
- data/CONTRIBUTING.md +103 -0
- data/Guardfile +2 -2
- data/LICENSE +116 -0
- data/README.md +112 -172
- data/Rakefile +6 -7
- data/bin/microformats +10 -9
- data/lib/microformats.rb +15 -14
- data/lib/microformats/absolute_uri.rb +4 -8
- data/lib/microformats/format_parser.rb +271 -251
- data/lib/microformats/parser.rb +38 -38
- data/lib/microformats/parser_core.rb +142 -109
- data/lib/microformats/property_parser.rb +42 -65
- data/lib/microformats/results/collection.rb +19 -38
- data/lib/microformats/results/parser_result.rb +25 -37
- data/lib/microformats/results/property_set.rb +24 -31
- data/lib/microformats/time_property_parser.rb +122 -118
- data/lib/microformats/version.rb +1 -1
- data/logo.svg +23 -0
- data/microformats.gemspec +35 -33
- metadata +140 -442
- data/LICENSE.md +0 -36
- data/spec/lib/microformats/absolute_uri_spec.rb +0 -56
- data/spec/lib/microformats/parser_spec.rb +0 -132
- data/spec/lib/microformats_spec.rb +0 -33
- data/spec/spec_helper.rb +0 -10
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-0.html +0 -2
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-0.js +0 -9
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-1.html +0 -2
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-1.js +0 -10
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-2.html +0 -5
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-2.js +0 -11
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-3.html +0 -17
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-3.js +0 -20
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-4.html +0 -16
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-4.js +0 -24
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-5.html +0 -7
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-5.js +0 -11
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-6.html +0 -9
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-6.js +0 -18
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-7.html +0 -9
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-7.js +0 -18
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-8.html +0 -9
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-8.js +0 -17
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-9.html +0 -9
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-9.js +0 -17
- data/spec/support/lib/edge_cases/blank_href.html +0 -23
- data/spec/support/lib/edge_cases/blank_href.js +0 -15
- data/spec/support/lib/edge_cases/blank_rel.html +0 -23
- data/spec/support/lib/edge_cases/blank_rel.js +0 -41
- data/spec/support/lib/edge_cases/blank_src.html +0 -24
- data/spec/support/lib/edge_cases/blank_src.js +0 -16
- data/spec/support/lib/edge_cases/blank_value.html +0 -5
- data/spec/support/lib/edge_cases/blank_value.js +0 -19
- data/spec/support/lib/edge_cases/relative.html +0 -29
- data/spec/support/lib/edge_cases/relative.js +0 -15
- data/spec/support/lib/edge_cases/vcp-dates.html +0 -13
- data/spec/support/lib/edge_cases/vcp-dates.js +0 -30
- data/spec/support/lib/microformats/blank_href.html +0 -23
- data/spec/support/lib/microformats/blank_href.js +0 -11
- data/spec/support/lib/microformats/implied_property/name-fail.html +0 -60
- data/spec/support/lib/microformats/implied_property/name-pass.html +0 -30
- data/spec/support/lib/microformats/implied_property/photo-fail.html +0 -60
- data/spec/support/lib/microformats/implied_property/photo-pass.html +0 -30
- data/spec/support/lib/microformats/implied_property/url-fail.html +0 -18
- data/spec/support/lib/microformats/implied_property/url-pass.html +0 -12
- data/spec/support/lib/microformats/implied_property/url-relative.html +0 -13
- data/spec/support/lib/microformats/implied_property/url-unnormalized.html +0 -12
- data/spec/support/lib/microformats/nested-format-with-property-of-same-name.html +0 -13
- data/spec/support/lib/microformats/nested-format-with-property-of-same-name.js +0 -16
- data/spec/support/lib/microformats/nested-format-with-property.html +0 -12
- data/spec/support/lib/microformats/nested-format-with-property.js +0 -16
- data/spec/support/lib/microformats/nested-format-without-property.html +0 -13
- data/spec/support/lib/microformats/nested-property.html +0 -12
- data/spec/support/lib/microformats/nested-property.js +0 -10
- data/spec/support/lib/microformats/rels-that-drop-the-base.html +0 -11
- data/spec/support/lib/microformats/rels-with-unnormalized-urls.html +0 -11
- data/spec/support/lib/microformats/rels.html +0 -12
- data/spec/support/lib/microformats/rels.js +0 -13
- data/spec/support/lib/microformats/simple.html +0 -23
- data/spec/support/lib/microformats/simple.js +0 -11
- data/vendor/tests/.gitignore +0 -25
- data/vendor/tests/LICENSE.md +0 -36
- data/vendor/tests/README.md +0 -48
- data/vendor/tests/app.js +0 -84
- data/vendor/tests/composer.json +0 -5
- data/vendor/tests/css/testsuite.css +0 -159
- data/vendor/tests/interface.js +0 -18
- data/vendor/tests/package.json +0 -27
- data/vendor/tests/tests/microformats-mixed/h-card/change-log.html +0 -63
- data/vendor/tests/tests/microformats-mixed/h-card/mixedpropertries.html +0 -14
- data/vendor/tests/tests/microformats-mixed/h-card/mixedpropertries.json +0 -22
- data/vendor/tests/tests/microformats-mixed/h-card/tworoots.html +0 -1
- data/vendor/tests/tests/microformats-mixed/h-card/tworoots.json +0 -10
- data/vendor/tests/tests/microformats-mixed/h-entry/mixedroots.html +0 -16
- data/vendor/tests/tests/microformats-mixed/h-entry/mixedroots.json +0 -38
- data/vendor/tests/tests/microformats-mixed/h-resume/change-log.html +0 -68
- data/vendor/tests/tests/microformats-mixed/h-resume/mixedroots.html +0 -16
- data/vendor/tests/tests/microformats-mixed/h-resume/mixedroots.json +0 -31
- data/vendor/tests/tests/microformats-v1/adr/change-log.html +0 -63
- data/vendor/tests/tests/microformats-v1/adr/simpleproperties.html +0 -8
- data/vendor/tests/tests/microformats-v1/adr/simpleproperties.json +0 -15
- data/vendor/tests/tests/microformats-v1/geo/abbrpattern.html +0 -5
- data/vendor/tests/tests/microformats-v1/geo/abbrpattern.json +0 -11
- data/vendor/tests/tests/microformats-v1/geo/change-log.1.html +0 -78
- data/vendor/tests/tests/microformats-v1/geo/change-log.html +0 -63
- data/vendor/tests/tests/microformats-v1/geo/hidden.html +0 -10
- data/vendor/tests/tests/microformats-v1/geo/hidden.json +0 -11
- data/vendor/tests/tests/microformats-v1/geo/simpleproperties.html +0 -6
- data/vendor/tests/tests/microformats-v1/geo/simpleproperties.json +0 -11
- data/vendor/tests/tests/microformats-v1/geo/valuetitleclass.html +0 -11
- data/vendor/tests/tests/microformats-v1/geo/valuetitleclass.json +0 -11
- data/vendor/tests/tests/microformats-v1/hcalendar/ampm.html +0 -41
- data/vendor/tests/tests/microformats-v1/hcalendar/ampm.json +0 -21
- data/vendor/tests/tests/microformats-v1/hcalendar/attendees.html +0 -13
- data/vendor/tests/tests/microformats-v1/hcalendar/attendees.json +0 -37
- data/vendor/tests/tests/microformats-v1/hcalendar/change-log.html +0 -68
- data/vendor/tests/tests/microformats-v1/hcalendar/combining.html +0 -15
- data/vendor/tests/tests/microformats-v1/hcalendar/combining.json +0 -31
- data/vendor/tests/tests/microformats-v1/hcalendar/concatenate.html +0 -7
- data/vendor/tests/tests/microformats-v1/hcalendar/concatenate.json +0 -12
- data/vendor/tests/tests/microformats-v1/hcalendar/time.html +0 -44
- data/vendor/tests/tests/microformats-v1/hcalendar/time.json +0 -22
- data/vendor/tests/tests/microformats-v1/hcard/change-log.html +0 -68
- data/vendor/tests/tests/microformats-v1/hcard/email.html +0 -14
- data/vendor/tests/tests/microformats-v1/hcard/email.json +0 -11
- data/vendor/tests/tests/microformats-v1/hcard/format.html +0 -6
- data/vendor/tests/tests/microformats-v1/hcard/format.json +0 -11
- data/vendor/tests/tests/microformats-v1/hcard/hyperlinkedphoto.html +0 -3
- data/vendor/tests/tests/microformats-v1/hcard/hyperlinkedphoto.json +0 -8
- data/vendor/tests/tests/microformats-v1/hcard/justahyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v1/hcard/justahyperlink.json +0 -8
- data/vendor/tests/tests/microformats-v1/hcard/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v1/hcard/justaname.json +0 -8
- data/vendor/tests/tests/microformats-v1/hcard/multiple.html +0 -74
- data/vendor/tests/tests/microformats-v1/hcard/multiple.json +0 -65
- data/vendor/tests/tests/microformats-v1/hcard/name.html +0 -11
- data/vendor/tests/tests/microformats-v1/hcard/name.json +0 -15
- data/vendor/tests/tests/microformats-v1/hcard/single.html +0 -14
- data/vendor/tests/tests/microformats-v1/hcard/single.json +0 -24
- data/vendor/tests/tests/microformats-v1/hentry/change-log.html +0 -73
- data/vendor/tests/tests/microformats-v1/hentry/summarycontent.html +0 -20
- data/vendor/tests/tests/microformats-v1/hentry/summarycontent.json +0 -24
- data/vendor/tests/tests/microformats-v1/hfeed/simple.html +0 -30
- data/vendor/tests/tests/microformats-v1/hfeed/simple.json +0 -49
- data/vendor/tests/tests/microformats-v1/hnews/all.html +0 -37
- data/vendor/tests/tests/microformats-v1/hnews/all.json +0 -74
- data/vendor/tests/tests/microformats-v1/hnews/change-log.html +0 -72
- data/vendor/tests/tests/microformats-v1/hnews/minimum.html +0 -25
- data/vendor/tests/tests/microformats-v1/hnews/minimum.json +0 -48
- data/vendor/tests/tests/microformats-v1/hproduct/aggregate.html +0 -26
- data/vendor/tests/tests/microformats-v1/hproduct/aggregate.json +0 -52
- data/vendor/tests/tests/microformats-v1/hproduct/change-log.html +0 -62
- data/vendor/tests/tests/microformats-v1/hproduct/simpleproperties.html +0 -13
- data/vendor/tests/tests/microformats-v1/hproduct/simpleproperties.json +0 -33
- data/vendor/tests/tests/microformats-v1/hresume/affiliation.html +0 -12
- data/vendor/tests/tests/microformats-v1/hresume/affiliation.json +0 -25
- data/vendor/tests/tests/microformats-v1/hresume/change-log.html +0 -73
- data/vendor/tests/tests/microformats-v1/hresume/contact.html +0 -18
- data/vendor/tests/tests/microformats-v1/hresume/contact.json +0 -32
- data/vendor/tests/tests/microformats-v1/hresume/education.html +0 -13
- data/vendor/tests/tests/microformats-v1/hresume/education.json +0 -29
- data/vendor/tests/tests/microformats-v1/hresume/skill.html +0 -12
- data/vendor/tests/tests/microformats-v1/hresume/skill.json +0 -33
- data/vendor/tests/tests/microformats-v1/hresume/work.html +0 -16
- data/vendor/tests/tests/microformats-v1/hresume/work.json +0 -30
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/change-log.html +0 -67
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/hcard.html +0 -18
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/hcard.json +0 -31
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/justahyperlink.html +0 -6
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/justahyperlink.json +0 -19
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/vevent.html +0 -13
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/vevent.json +0 -22
- data/vendor/tests/tests/microformats-v1/hreview/change-log.html +0 -73
- data/vendor/tests/tests/microformats-v1/hreview/item.html +0 -8
- data/vendor/tests/tests/microformats-v1/hreview/item.json +0 -19
- data/vendor/tests/tests/microformats-v1/hreview/vcard.html +0 -23
- data/vendor/tests/tests/microformats-v1/hreview/vcard.json +0 -58
- data/vendor/tests/tests/microformats-v1/includes/change-log.html +0 -72
- data/vendor/tests/tests/microformats-v1/includes/hcarditemref.html +0 -16
- data/vendor/tests/tests/microformats-v1/includes/hcarditemref.json +0 -49
- data/vendor/tests/tests/microformats-v1/includes/heventitemref.html +0 -25
- data/vendor/tests/tests/microformats-v1/includes/heventitemref.json +0 -33
- data/vendor/tests/tests/microformats-v1/includes/hyperlink.html +0 -18
- data/vendor/tests/tests/microformats-v1/includes/hyperlink.json +0 -43
- data/vendor/tests/tests/microformats-v1/includes/object.html +0 -23
- data/vendor/tests/tests/microformats-v1/includes/object.json +0 -42
- data/vendor/tests/tests/microformats-v1/includes/table.html +0 -12
- data/vendor/tests/tests/microformats-v1/includes/table.json +0 -19
- data/vendor/tests/tests/microformats-v2/h-adr/change-log.html +0 -62
- data/vendor/tests/tests/microformats-v2/h-adr/geo.html +0 -10
- data/vendor/tests/tests/microformats-v2/h-adr/geo.json +0 -16
- data/vendor/tests/tests/microformats-v2/h-adr/geourl.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-adr/geourl.json +0 -13
- data/vendor/tests/tests/microformats-v2/h-adr/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-adr/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-adr/lettercase.html +0 -21
- data/vendor/tests/tests/microformats-v2/h-adr/lettercase.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-adr/simpleproperties.html +0 -8
- data/vendor/tests/tests/microformats-v2/h-adr/simpleproperties.json +0 -16
- data/vendor/tests/tests/microformats-v2/h-as-note/note.html +0 -56
- data/vendor/tests/tests/microformats-v2/h-as-note/note.json +0 -98
- data/vendor/tests/tests/microformats-v2/h-card/baseurl.html +0 -6
- data/vendor/tests/tests/microformats-v2/h-card/baseurl.json +0 -26
- data/vendor/tests/tests/microformats-v2/h-card/change-log.html +0 -100
- data/vendor/tests/tests/microformats-v2/h-card/childimplied.html +0 -7
- data/vendor/tests/tests/microformats-v2/h-card/childimplied.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-card/extendeddescription.html +0 -10
- data/vendor/tests/tests/microformats-v2/h-card/extendeddescription.json +0 -15
- data/vendor/tests/tests/microformats-v2/h-card/hcard.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-card/hcard.json +0 -19
- data/vendor/tests/tests/microformats-v2/h-card/horghcard.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-card/horghcard.json +0 -19
- data/vendor/tests/tests/microformats-v2/h-card/hyperlinkedphoto.html +0 -3
- data/vendor/tests/tests/microformats-v2/h-card/hyperlinkedphoto.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-card/impliedname.html +0 -15
- data/vendor/tests/tests/microformats-v2/h-card/impliedname.json +0 -90
- data/vendor/tests/tests/microformats-v2/h-card/impliedphoto.html +0 -11
- data/vendor/tests/tests/microformats-v2/h-card/impliedphoto.json +0 -72
- data/vendor/tests/tests/microformats-v2/h-card/impliedurl.html +0 -5
- data/vendor/tests/tests/microformats-v2/h-card/impliedurl.json +0 -45
- data/vendor/tests/tests/microformats-v2/h-card/justahyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-card/justahyperlink.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-card/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-card/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-card/nested.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-card/nested.json +0 -18
- data/vendor/tests/tests/microformats-v2/h-card/p-property.html +0 -21
- data/vendor/tests/tests/microformats-v2/h-card/p-property.json +0 -15
- data/vendor/tests/tests/microformats-v2/h-card/relativeurls.html +0 -6
- data/vendor/tests/tests/microformats-v2/h-card/relativeurls.json +0 -29
- data/vendor/tests/tests/microformats-v2/h-entry/change-log.html +0 -90
- data/vendor/tests/tests/microformats-v2/h-entry/encoding.html +0 -3
- data/vendor/tests/tests/microformats-v2/h-entry/encoding.json +0 -14
- data/vendor/tests/tests/microformats-v2/h-entry/impliedvalue-nested.html +0 -9
- data/vendor/tests/tests/microformats-v2/h-entry/impliedvalue-nested.json +0 -27
- data/vendor/tests/tests/microformats-v2/h-entry/justahyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-entry/justahyperlink.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-entry/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-entry/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-entry/scriptstyletags.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-entry/scriptstyletags.json +0 -14
- data/vendor/tests/tests/microformats-v2/h-entry/summarycontent.html +0 -20
- data/vendor/tests/tests/microformats-v2/h-entry/summarycontent.json +0 -25
- data/vendor/tests/tests/microformats-v2/h-entry/u-property.html +0 -33
- data/vendor/tests/tests/microformats-v2/h-entry/u-property.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-entry/urlincontent.html +0 -13
- data/vendor/tests/tests/microformats-v2/h-entry/urlincontent.json +0 -14
- data/vendor/tests/tests/microformats-v2/h-event/ampm.html +0 -41
- data/vendor/tests/tests/microformats-v2/h-event/ampm.json +0 -21
- data/vendor/tests/tests/microformats-v2/h-event/attendees.html +0 -13
- data/vendor/tests/tests/microformats-v2/h-event/attendees.json +0 -37
- data/vendor/tests/tests/microformats-v2/h-event/change-log.html +0 -82
- data/vendor/tests/tests/microformats-v2/h-event/combining.html +0 -13
- data/vendor/tests/tests/microformats-v2/h-event/combining.json +0 -25
- data/vendor/tests/tests/microformats-v2/h-event/concatenate.html +0 -8
- data/vendor/tests/tests/microformats-v2/h-event/concatenate.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-event/dates.html +0 -13
- data/vendor/tests/tests/microformats-v2/h-event/dates.json +0 -26
- data/vendor/tests/tests/microformats-v2/h-event/dt-property.html +0 -23
- data/vendor/tests/tests/microformats-v2/h-event/dt-property.json +0 -20
- data/vendor/tests/tests/microformats-v2/h-event/justahyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-event/justahyperlink.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-event/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-event/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-event/time.html +0 -47
- data/vendor/tests/tests/microformats-v2/h-event/time.json +0 -25
- data/vendor/tests/tests/microformats-v2/h-feed/implied-title.html +0 -30
- data/vendor/tests/tests/microformats-v2/h-feed/implied-title.json +0 -23
- data/vendor/tests/tests/microformats-v2/h-feed/simple.html +0 -26
- data/vendor/tests/tests/microformats-v2/h-feed/simple.json +0 -33
- data/vendor/tests/tests/microformats-v2/h-geo/abbrpattern.html +0 -5
- data/vendor/tests/tests/microformats-v2/h-geo/abbrpattern.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-geo/altitude.html +0 -8
- data/vendor/tests/tests/microformats-v2/h-geo/altitude.json +0 -13
- data/vendor/tests/tests/microformats-v2/h-geo/change-log.html +0 -67
- data/vendor/tests/tests/microformats-v2/h-geo/hidden.html +0 -10
- data/vendor/tests/tests/microformats-v2/h-geo/hidden.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-geo/justaname.html +0 -3
- data/vendor/tests/tests/microformats-v2/h-geo/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-geo/simpleproperties.html +0 -5
- data/vendor/tests/tests/microformats-v2/h-geo/simpleproperties.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-geo/valuetitleclass.html +0 -11
- data/vendor/tests/tests/microformats-v2/h-geo/valuetitleclass.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-news/all.html +0 -35
- data/vendor/tests/tests/microformats-v2/h-news/all.json +0 -51
- data/vendor/tests/tests/microformats-v2/h-news/change-log.html +0 -78
- data/vendor/tests/tests/microformats-v2/h-news/minimum.html +0 -24
- data/vendor/tests/tests/microformats-v2/h-news/minimum.json +0 -40
- data/vendor/tests/tests/microformats-v2/h-org/change-log.html +0 -57
- data/vendor/tests/tests/microformats-v2/h-org/hyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-org/hyperlink.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-org/simple.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-org/simple.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-org/simpleproperties.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-org/simpleproperties.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-product/aggregate.html +0 -21
- data/vendor/tests/tests/microformats-v2/h-product/aggregate.json +0 -45
- data/vendor/tests/tests/microformats-v2/h-product/change-log.html +0 -62
- data/vendor/tests/tests/microformats-v2/h-product/justahyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-product/justahyperlink.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-product/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-product/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-product/simpleproperties.html +0 -10
- data/vendor/tests/tests/microformats-v2/h-product/simpleproperties.json +0 -26
- data/vendor/tests/tests/microformats-v2/h-recipe/all.html +0 -63
- data/vendor/tests/tests/microformats-v2/h-recipe/all.json +0 -54
- data/vendor/tests/tests/microformats-v2/h-recipe/change-log.html +0 -62
- data/vendor/tests/tests/microformats-v2/h-recipe/minimum.html +0 -7
- data/vendor/tests/tests/microformats-v2/h-recipe/minimum.json +0 -17
- data/vendor/tests/tests/microformats-v2/h-resume/affiliation.html +0 -12
- data/vendor/tests/tests/microformats-v2/h-resume/affiliation.json +0 -20
- data/vendor/tests/tests/microformats-v2/h-resume/change-log.html +0 -78
- data/vendor/tests/tests/microformats-v2/h-resume/contact.html +0 -17
- data/vendor/tests/tests/microformats-v2/h-resume/contact.json +0 -26
- data/vendor/tests/tests/microformats-v2/h-resume/education.html +0 -13
- data/vendor/tests/tests/microformats-v2/h-resume/education.json +0 -30
- data/vendor/tests/tests/microformats-v2/h-resume/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-resume/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-resume/skill.html +0 -12
- data/vendor/tests/tests/microformats-v2/h-resume/skill.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-resume/work.html +0 -16
- data/vendor/tests/tests/microformats-v2/h-resume/work.json +0 -31
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/change-log.html +0 -78
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/hevent.html +0 -13
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/hevent.json +0 -23
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/justahyperlink.html +0 -8
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/justahyperlink.json +0 -19
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/simpleproperties.html +0 -18
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/simpleproperties.json +0 -26
- data/vendor/tests/tests/microformats-v2/h-review/change-log.html +0 -84
- data/vendor/tests/tests/microformats-v2/h-review/hyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-review/hyperlink.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-review/implieditem.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-review/implieditem.json +0 -19
- data/vendor/tests/tests/microformats-v2/h-review/item.html +0 -8
- data/vendor/tests/tests/microformats-v2/h-review/item.json +0 -20
- data/vendor/tests/tests/microformats-v2/h-review/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-review/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-review/photo.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-review/photo.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-review/vcard.html +0 -23
- data/vendor/tests/tests/microformats-v2/h-review/vcard.json +0 -48
- data/vendor/tests/tests/microformats-v2/rel/change-log.html +0 -67
- data/vendor/tests/tests/microformats-v2/rel/duplicate-rels.html +0 -10
- data/vendor/tests/tests/microformats-v2/rel/duplicate-rels.json +0 -75
- data/vendor/tests/tests/microformats-v2/rel/license.html +0 -1
- data/vendor/tests/tests/microformats-v2/rel/license.json +0 -12
- data/vendor/tests/tests/microformats-v2/rel/nofollow.html +0 -1
- data/vendor/tests/tests/microformats-v2/rel/nofollow.json +0 -12
- data/vendor/tests/tests/microformats-v2/rel/rel-urls.html +0 -8
- data/vendor/tests/tests/microformats-v2/rel/rel-urls.json +0 -33
- data/vendor/tests/tests/microformats-v2/rel/varying-text-duplicate-rels.html +0 -4
- data/vendor/tests/tests/microformats-v2/rel/varying-text-duplicate-rels.json +0 -20
- data/vendor/tests/tests/microformats-v2/rel/xfn-all.html +0 -19
- data/vendor/tests/tests/microformats-v2/rel/xfn-all.json +0 -92
- data/vendor/tests/tests/microformats-v2/rel/xfn-elsewhere.html +0 -10
- data/vendor/tests/tests/microformats-v2/rel/xfn-elsewhere.json +0 -40
@@ -1,49 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"items": [{
|
3
|
-
"type": ["h-feed"],
|
4
|
-
"properties": {
|
5
|
-
"author": [{
|
6
|
-
"value": "Tantek",
|
7
|
-
"type": ["h-card"],
|
8
|
-
"properties": {
|
9
|
-
"name": ["Tantek"],
|
10
|
-
"url": ["http://tantek.com/"]
|
11
|
-
}
|
12
|
-
}],
|
13
|
-
"url": ["http://microformats.org/blog"],
|
14
|
-
"photo": ["http://example.com/photo.jpeg"],
|
15
|
-
"category": ["microformats", "html"]
|
16
|
-
},
|
17
|
-
"children": [{
|
18
|
-
"type": ["h-entry"],
|
19
|
-
"properties": {
|
20
|
-
"name": ["microformats.org at 7"],
|
21
|
-
"url": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
|
22
|
-
"content": [{
|
23
|
-
"value": "Last week the microformats.org community \n\t celebrated its 7th birthday at a gathering hosted by Mozilla in \n\t San Francisco and recognized accomplishments, challenges, and \n\t opportunities.\n\t\n\t The microformats tagline “humans first, machines second” \n\t forms the basis of many of our \n\t principles, and \n\t in that regard, we’d like to recognize a few people and \n\t thank them for their years of volunteer service",
|
24
|
-
"html": "\n\t <p class=\"entry-summary\">Last week the microformats.org community \n\t celebrated its 7th birthday at a gathering hosted by Mozilla in \n\t San Francisco and recognized accomplishments, challenges, and \n\t opportunities.</p>\n\t\n\t <p>The microformats tagline “humans first, machines second” \n\t forms the basis of many of our \n\t <a href=\"http://microformats.org/wiki/principles\">principles</a>, and \n\t in that regard, we’d like to recognize a few people and \n\t thank them for their years of volunteer service </p>\n\t"
|
25
|
-
}],
|
26
|
-
"summary": ["Last week the microformats.org community \n\t celebrated its 7th birthday at a gathering hosted by Mozilla in \n\t San Francisco and recognized accomplishments, challenges, and \n\t opportunities."],
|
27
|
-
"updated": ["2012-06-25 17:08:26"]
|
28
|
-
}
|
29
|
-
}]
|
30
|
-
}],
|
31
|
-
"rels": {
|
32
|
-
"tag": ["http://example.com/tags/microformats", "http://example.com/tags/html"],
|
33
|
-
"bookmark": ["http://microformats.org/2012/06/25/microformats-org-at-7"]
|
34
|
-
},
|
35
|
-
"rel-urls": {
|
36
|
-
"http://example.com/tags/microformats": {
|
37
|
-
"text": "microformats",
|
38
|
-
"rels": ["tag"]
|
39
|
-
},
|
40
|
-
"http://example.com/tags/html": {
|
41
|
-
"text": "html",
|
42
|
-
"rels": ["tag"]
|
43
|
-
},
|
44
|
-
"http://microformats.org/2012/06/25/microformats-org-at-7": {
|
45
|
-
"text": "microformats.org at 7",
|
46
|
-
"rels": ["bookmark"]
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
<div class="hnews">
|
2
|
-
<div class="entry hentry">
|
3
|
-
<h1><a class="entry-title" rel="bookmark" href="http://microformats.org/2012/06/25/microformats-org-at-7">microformats.org at 7</a></h1>
|
4
|
-
<div class="entry-content">
|
5
|
-
<p class="entry-summary">Last week the microformats.org community
|
6
|
-
celebrated its 7th birthday at a gathering hosted by Mozilla in
|
7
|
-
San Francisco and recognized accomplishments, challenges, and
|
8
|
-
opportunities.</p>
|
9
|
-
|
10
|
-
<p>The microformats tagline “humans first, machines second”
|
11
|
-
forms the basis of many of our
|
12
|
-
<a href="http://microformats.org/wiki/principles">principles</a>, and
|
13
|
-
in that regard, we’d like to recognize a few people and
|
14
|
-
thank them for their years of volunteer service </p>
|
15
|
-
</div>
|
16
|
-
<p>Updated
|
17
|
-
<time class="updated" datetime="2012-06-25T17:08:26">June 25th, 2012</time> by
|
18
|
-
<span class="author vcard"><a class="fn url" href="http://tantek.com/">Tantek</a></span>
|
19
|
-
</p>
|
20
|
-
</div>
|
21
|
-
|
22
|
-
<p>
|
23
|
-
<span class="dateline vcard">
|
24
|
-
<span class="adr">
|
25
|
-
<span class="locality">San Francisco</span>,
|
26
|
-
<span class="region">CA</span>
|
27
|
-
</span>
|
28
|
-
</span>
|
29
|
-
(Geo: <span class="geo">37.774921;-122.445202</span>)
|
30
|
-
<span class="source-org vcard">
|
31
|
-
<a class="fn org url" href="http://microformats.org/">microformats.org</a>
|
32
|
-
</span>
|
33
|
-
</p>
|
34
|
-
<p>
|
35
|
-
<a rel="principles" href="http://microformats.org/wiki/Category:public_domain_license">Publishing policy</a>
|
36
|
-
</p>
|
37
|
-
</div>
|
@@ -1,74 +0,0 @@
|
|
1
|
-
|
2
|
-
{
|
3
|
-
"items": [{
|
4
|
-
"type": ["h-news"],
|
5
|
-
"properties": {
|
6
|
-
"entry": [{
|
7
|
-
"value": "microformats.org at 7",
|
8
|
-
"type": ["h-entry"],
|
9
|
-
"properties": {
|
10
|
-
"name": ["microformats.org at 7"],
|
11
|
-
"url": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
|
12
|
-
"content": [{
|
13
|
-
"value": "Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.\n\n The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service",
|
14
|
-
"html": "\n <p class=\"entry-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"
|
15
|
-
}],
|
16
|
-
"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."],
|
17
|
-
"updated": ["2012-06-25 17:08:26"],
|
18
|
-
"author": [{
|
19
|
-
"value": "Tantek",
|
20
|
-
"type": ["h-card"],
|
21
|
-
"properties": {
|
22
|
-
"name": ["Tantek"],
|
23
|
-
"url": ["http://tantek.com/"]
|
24
|
-
}
|
25
|
-
}]
|
26
|
-
}
|
27
|
-
}],
|
28
|
-
"dateline": [{
|
29
|
-
"value": "San Francisco, \n CA",
|
30
|
-
"type": ["h-card"],
|
31
|
-
"properties": {
|
32
|
-
"adr": [{
|
33
|
-
"value": "San Francisco, \n CA",
|
34
|
-
"type": ["h-adr"],
|
35
|
-
"properties": {
|
36
|
-
"locality": ["San Francisco"],
|
37
|
-
"region": ["CA"]
|
38
|
-
}
|
39
|
-
}]
|
40
|
-
}
|
41
|
-
}],
|
42
|
-
"geo": [{
|
43
|
-
"value": "37.774921;-122.445202",
|
44
|
-
"type": ["h-geo"],
|
45
|
-
"properties": {
|
46
|
-
}
|
47
|
-
}],
|
48
|
-
"source-org": [{
|
49
|
-
"value": "microformats.org",
|
50
|
-
"type": ["h-card"],
|
51
|
-
"properties": {
|
52
|
-
"name": ["microformats.org"],
|
53
|
-
"org": ["microformats.org"],
|
54
|
-
"url": ["http://microformats.org/"]
|
55
|
-
}
|
56
|
-
}],
|
57
|
-
"principles": ["http://microformats.org/wiki/Category:public_domain_license"]
|
58
|
-
}
|
59
|
-
}],
|
60
|
-
"rels": {
|
61
|
-
"bookmark": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
|
62
|
-
"principles": ["http://microformats.org/wiki/Category:public_domain_license"]
|
63
|
-
},
|
64
|
-
"rel-urls": {
|
65
|
-
"http://microformats.org/2012/06/25/microformats-org-at-7": {
|
66
|
-
"text": "microformats.org at 7",
|
67
|
-
"rels": ["bookmark"]
|
68
|
-
},
|
69
|
-
"http://microformats.org/wiki/Category:public_domain_license": {
|
70
|
-
"text": "Publishing policy",
|
71
|
-
"rels": ["principles"]
|
72
|
-
}
|
73
|
-
}
|
74
|
-
}
|
@@ -1,72 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8" />
|
5
|
-
<title>hnews 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">hnews</span> parsing tests ‐ change logs</h1>
|
17
|
-
|
18
|
-
<p class="p-description">The files in this directory where designed to test the parsing of hnews. </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">Added missing properties to all test</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">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">Updated encoding issue on e-*</span> ‐
|
46
|
-
<time class="dt-published" datetime="2013-09-19">19 September 2013</time>
|
47
|
-
by <span class="p-author">Glenn Jones</span>
|
48
|
-
</li>
|
49
|
-
<li class="h-entry">
|
50
|
-
<span class="p-name e-content">Created</span> ‐
|
51
|
-
<time class="dt-published" datetime="2013-01-14">14 January 2013</time>
|
52
|
-
by <span class="p-author">Glenn Jones</span>
|
53
|
-
</li>
|
54
|
-
</ul>
|
55
|
-
|
56
|
-
|
57
|
-
<h2>Contributors:</h2>
|
58
|
-
<ul>
|
59
|
-
<!-- If you Contribute to the test please add yourself as an author using p-author h-card -->
|
60
|
-
<li class="p-author h-card">
|
61
|
-
<a class="u-url p-name" rel="author" href="http://www.glennjones.net/">Glenn Jones</a>
|
62
|
-
</li>
|
63
|
-
</ul>
|
64
|
-
|
65
|
-
|
66
|
-
<footer>
|
67
|
-
All content and code is released into the <a href="http://en.wikipedia.org/wiki/public_domain">public domain</a>
|
68
|
-
</footer>
|
69
|
-
|
70
|
-
</body>
|
71
|
-
|
72
|
-
</html>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<div class="hnews">
|
2
|
-
<div class="entry hentry">
|
3
|
-
<h1><a class="entry-title" rel="bookmark" href="http://microformats.org/2012/06/25/microformats-org-at-7">microformats.org at 7</a></h1>
|
4
|
-
<div class="entry-content">
|
5
|
-
<p class="entry-summary">Last week the microformats.org community
|
6
|
-
celebrated its 7th birthday at a gathering hosted by Mozilla in
|
7
|
-
San Francisco and recognized accomplishments, challenges, and
|
8
|
-
opportunities.</p>
|
9
|
-
|
10
|
-
<p>The microformats tagline “humans first, machines second”
|
11
|
-
forms the basis of many of our
|
12
|
-
<a href="http://microformats.org/wiki/principles">principles</a>, and
|
13
|
-
in that regard, we’d like to recognize a few people and
|
14
|
-
thank them for their years of volunteer service </p>
|
15
|
-
</div>
|
16
|
-
<p>Updated
|
17
|
-
<time class="updated" datetime="2012-06-25T17:08:26">June 25th, 2012</time> by
|
18
|
-
<span class="author vcard"><a class="fn url" href="http://tantek.com/">Tantek</a></span>
|
19
|
-
</p>
|
20
|
-
</div>
|
21
|
-
|
22
|
-
<p class="source-org vcard">
|
23
|
-
<a class="fn org url" href="http://microformats.org/">microformats.org</a>
|
24
|
-
</p>
|
25
|
-
</div>
|
@@ -1,48 +0,0 @@
|
|
1
|
-
|
2
|
-
{
|
3
|
-
"items": [{
|
4
|
-
"type": ["h-news"],
|
5
|
-
"properties": {
|
6
|
-
"entry": [{
|
7
|
-
"value": "microformats.org at 7",
|
8
|
-
"type": ["h-entry"],
|
9
|
-
"properties": {
|
10
|
-
"name": ["microformats.org at 7"],
|
11
|
-
"url": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
|
12
|
-
"content": [{
|
13
|
-
"value": "Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.\n\n The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service",
|
14
|
-
"html": "\n <p class=\"entry-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"
|
15
|
-
}],
|
16
|
-
"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."],
|
17
|
-
"updated": ["2012-06-25 17:08:26"],
|
18
|
-
"author": [{
|
19
|
-
"value": "Tantek",
|
20
|
-
"type": ["h-card"],
|
21
|
-
"properties": {
|
22
|
-
"name": ["Tantek"],
|
23
|
-
"url": ["http://tantek.com/"]
|
24
|
-
}
|
25
|
-
}]
|
26
|
-
}
|
27
|
-
}],
|
28
|
-
"source-org": [{
|
29
|
-
"value": "microformats.org",
|
30
|
-
"type": ["h-card"],
|
31
|
-
"properties": {
|
32
|
-
"name": ["microformats.org"],
|
33
|
-
"org": ["microformats.org"],
|
34
|
-
"url": ["http://microformats.org/"]
|
35
|
-
}
|
36
|
-
}]
|
37
|
-
}
|
38
|
-
}],
|
39
|
-
"rels": {
|
40
|
-
"bookmark": ["http://microformats.org/2012/06/25/microformats-org-at-7"]
|
41
|
-
},
|
42
|
-
"rel-urls": {
|
43
|
-
"http://microformats.org/2012/06/25/microformats-org-at-7": {
|
44
|
-
"text": "microformats.org at 7",
|
45
|
-
"rels": ["bookmark"]
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
@@ -1,26 +0,0 @@
|
|
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-aggregate">
|
9
|
-
<span class="rating">
|
10
|
-
<span class="average value">9.2</span> out of
|
11
|
-
<span class="best">10</span>
|
12
|
-
based on <span class="count">178</span> reviews
|
13
|
-
</span>
|
14
|
-
</p>
|
15
|
-
<p>Categories:
|
16
|
-
<a rel="tag" href="http://en.wikipedia.org/wiki/computer" class="category">Computer</a>,
|
17
|
-
<a rel="tag" href="http://en.wikipedia.org/wiki/education" class="category">Education</a>
|
18
|
-
</p>
|
19
|
-
<p class="brand vcard">From:
|
20
|
-
<span class="fn org">The Raspberry Pi Foundation</span> -
|
21
|
-
<span class="adr">
|
22
|
-
<span class="locality">Cambridge</span>
|
23
|
-
<span class="country-name">UK</span>
|
24
|
-
</span>
|
25
|
-
</p>
|
26
|
-
</div>
|
@@ -1,52 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"items": [{
|
3
|
-
"type": ["h-product"],
|
4
|
-
"properties": {
|
5
|
-
"name": ["Raspberry Pi"],
|
6
|
-
"photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"],
|
7
|
-
"description": [ "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming." ],
|
8
|
-
"url": ["http://www.raspberrypi.org/"],
|
9
|
-
"price": ["£29.95"],
|
10
|
-
"review": [{
|
11
|
-
"value": "9.2",
|
12
|
-
"type": ["h-review", "h-review-aggregate"],
|
13
|
-
"properties": {
|
14
|
-
"rating": ["9.2"],
|
15
|
-
"average": ["9.2"],
|
16
|
-
"best": ["10"],
|
17
|
-
"count": ["178"]
|
18
|
-
}
|
19
|
-
}],
|
20
|
-
"category": ["Computer", "Education"],
|
21
|
-
"brand": [{
|
22
|
-
"value": "The Raspberry Pi Foundation",
|
23
|
-
"type": ["h-card"],
|
24
|
-
"properties": {
|
25
|
-
"name": ["The Raspberry Pi Foundation"],
|
26
|
-
"org": ["The Raspberry Pi Foundation"],
|
27
|
-
"adr": [{
|
28
|
-
"value": "Cambridge \n UK",
|
29
|
-
"type": ["h-adr"],
|
30
|
-
"properties": {
|
31
|
-
"locality": ["Cambridge"],
|
32
|
-
"country-name": ["UK"]
|
33
|
-
}
|
34
|
-
}]
|
35
|
-
}
|
36
|
-
}]
|
37
|
-
}
|
38
|
-
}],
|
39
|
-
"rels": {
|
40
|
-
"tag": ["http://en.wikipedia.org/wiki/computer", "http://en.wikipedia.org/wiki/education"]
|
41
|
-
},
|
42
|
-
"rel-urls": {
|
43
|
-
"http://en.wikipedia.org/wiki/computer": {
|
44
|
-
"text": "Computer",
|
45
|
-
"rels": ["tag"]
|
46
|
-
},
|
47
|
-
"http://en.wikipedia.org/wiki/education": {
|
48
|
-
"text": "Education",
|
49
|
-
"rels": ["tag"]
|
50
|
-
}
|
51
|
-
}
|
52
|
-
}
|
@@ -1,62 +0,0 @@
|
|
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>
|