Browse Source

Add attendee to h-event backcompat

master
J. King 1 year ago
parent
commit
3c0433547d
  1. 1
      lib/Parser.php
  2. 4
      tests/cases/StandardTest.php

1
lib/Parser.php

@ -37,6 +37,7 @@ class Parser {
'additional-name' => ['h-card' => ["p", "additional-name"]],
'adr' => ['h-card' => ["p", "adr"]],
'affiliation' => ['h-resume' => ["p", "affiliation", ["vcard"]]],
'attendee' => ['h-event' => ["p", "attendee"]],
'author' => ['h-entry' => ["p", "author", ["vcard"]], 'h-recipe' => ["p", "author", ["vcard"]], 'h-feed' => ["p", "author", ["vcard"]]],
'bday' => ['h-card' => ["dt", "bday"]],
'best' => ['h-review' => ["p", "best"], 'h-review-aggregate' => ["p", "best"]],

4
tests/cases/StandardTest.php

@ -14,11 +14,9 @@ class StandardTest extends \PHPUnit\Framework\TestCase {
protected const BASE = \MensBeam\Microformats\BASE."vendor-bin/phpunit/vendor/mf2/tests/tests/";
protected const SUPPRESSED = [
"microformats-v2/rel/duplicate-rels", // this test has a spurious newline at the beginning of a value
"microformats-v1/hcard/name", // this test does not follow rules for structured img parsing
"microformats-mixed/h-resume/mixedroots",
"microformats-v1/hcalendar/attendees",
"microformats-v1/hcard/multiple",
"microformats-v1/hcard/name",
"microformats-v1/hcard/single",
"microformats-v1/hproduct/aggregate",
"microformats-v1/hresume/affiliation",

Loading…
Cancel
Save