Skip to content

Commit

Permalink
Add new test for nested IDs (resolves microformats#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Nov 8, 2020
1 parent bef8e1b commit 2eb615f
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/microformats-v2/mixed/change-log.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ <h1 class="p-name"><span class="p-x-format">h-review</span> parsing tests &dash;
<h2>Change log:</h2>
<ul>
<!-- Add change log event to the top of this list as a h-entry -->
<li class="h-entry">
<span class="p-name e-content">Added new test for nested id's on microformats</span> &dash;
<time class="dt-published" datetime="2020-11-08">8 November 2020</time>
by <span class="p-author">Jason Garber</span>
</li>
<li class="h-entry">
<span class="p-name e-content">Added new test for id's on microformats</span> &dash;
<time class="dt-published" datetime="2020-04-29">29 April 2020</time>
Expand Down
4 changes: 4 additions & 0 deletions tests/microformats-v2/mixed/id-nested.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div id="a" class="h-a">
<div id="b" class="p-z h-b"></div>
<div id="c" class="h-c"></div>
</div>
41 changes: 41 additions & 0 deletions tests/microformats-v2/mixed/id-nested.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"items": [
{
"type": [
"h-a"
],
"properties": {
"z": [
{
"type": [
"h-b"
],
"properties": {
"name": [
""
]
},
"id": "b",
"value": ""
}
]
},
"id": "a",
"children": [
{
"type": [
"h-c"
],
"properties": {
"name": [
""
]
},
"id": "c"
}
]
}
],
"rels": {},
"rel-urls": {}
}

0 comments on commit 2eb615f

Please sign in to comment.