From 9f5e5a39d162d9f330d6f39ecbc58982bdde2860 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Sun, 25 Jun 2023 18:46:13 -0400 Subject: [PATCH] More template tests --- lib/Microformats/Parser.php | 4 +- .../mensbeam/default-settings/implied.html | 2 +- .../mensbeam/default-settings/template.html | 104 ++++++++++++-- .../mensbeam/default-settings/template.json | 128 ++++++++++++++++-- 4 files changed, 213 insertions(+), 25 deletions(-) diff --git a/lib/Microformats/Parser.php b/lib/Microformats/Parser.php index bb6cedd..3a9e4c9 100644 --- a/lib/Microformats/Parser.php +++ b/lib/Microformats/Parser.php @@ -333,7 +333,7 @@ class Parser { # set the value of that "rels" key to an array of all unique items # in the set of rel values unioned with the current array value # of the "rels" key, sorted alphabetically. - // NOTE: sorting and uniqueness filtering will be done later + // NOTE: sorting and uniqueness filtering will be done later array_push($out['rel-urls'][$url]['rels'], ...$rels); } // sort and clean rel microformats @@ -496,7 +496,7 @@ class Parser { * Properties are valid only for certain Microformat dialects (hence the * $types parameter), and some properties are derived from link relations * rather than class names (hence the $node parameter). Additionally some - * properties can imply other root classes. These are appended to the + * properties can imply other root classes. These are appended to the * &$classes reference when not already in the class list. * * The returned information is an indexed array of indexed arrays each diff --git a/tests/cases/mensbeam/default-settings/implied.html b/tests/cases/mensbeam/default-settings/implied.html index 52bcce4..f9bd5e6 100644 --- a/tests/cases/mensbeam/default-settings/implied.html +++ b/tests/cases/mensbeam/default-settings/implied.html @@ -1,5 +1,5 @@ diff --git a/tests/cases/mensbeam/default-settings/template.html b/tests/cases/mensbeam/default-settings/template.html index 5cce343..07229ae 100644 --- a/tests/cases/mensbeam/default-settings/template.html +++ b/tests/cases/mensbeam/default-settings/template.html @@ -1,65 +1,136 @@ - -
+ +
-
+
-
+
-
+
-
+
-
+
-
+
+ +
+ + TEMPLATE! PASS +
+ +
+ + TEMPLATE! +
+ +
+ + +
+ +
+ +
+ TEMPLATE! PASS +
+
+ +
+ +
+ TEMPLATE! +
+
+ +
+ +
+ +
+
+ +
+ +
+ PASS +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ -