Skip to content

Commit 6fdbdf6

Browse files
committed
Add test case using href="" in url property to reference current page
1 parent 7b10592 commit 6fdbdf6

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

tests/microformats-v2/h-card/change-log.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ <h1 class="p-name"><span class="p-x-format">h-card</span> parsing tests &dash; c
2121
<h2>Change log:</h2>
2222
<ul>
2323
<!-- 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">Added test using empty href="" attribute to reference current page</span> &dash;
26+
<time class="dt-published" datetime="2017-05-27">27 May 2017</time>
27+
by <span class="p-author">Sven Knebel</span>
28+
</li>
2429
<li class="h-entry">
2530
<span class="p-name e-content">Changed the order of items in type property for nested tests</span> &dash;
2631
<time class="dt-published" datetime="2015-05-23">23 May 2015</time>
@@ -88,6 +93,9 @@ <h2>Contributors:</h2>
8893
<li class="p-author h-card">
8994
<a class="u-url p-name" rel="author" href="http://www.glennjones.net/">Glenn Jones</a>
9095
</li>
96+
<li class="p-author h-card">
97+
<a class="u-url p-name" rel="author" href="https://www.svenknebel.de/">Sven Knebel</a>
98+
</li>
9199
</ul>
92100

93101

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<base href="http://example.com/profile">
2+
<div class="h-card">
3+
<a class="p-name u-url u-uid" href="">Max Mustermann</a>
4+
</div>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"items": [
3+
{
4+
"type": [
5+
"h-card"
6+
],
7+
"properties": {
8+
"name": [
9+
"Max Mustermann"
10+
],
11+
"url": [
12+
"http://example.com/profile"
13+
],
14+
"uid": [
15+
"http://example.com/profile"
16+
]
17+
}
18+
}
19+
],
20+
"rels": {},
21+
"rel-urls": {}
22+
}

0 commit comments

Comments
 (0)