Skip to content

Commit 43a9173

Browse files
committed
Add test case for empty attribute for implied url property
1 parent 6fdbdf6 commit 43a9173

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ <h2>Change log:</h2>
2222
<ul>
2323
<!-- Add change log event to the top of this list as a h-entry -->
2424
<li class="h-entry">
25+
<span class="p-name e-content">Added test for empty href="" attribute in implied property</span> &dash;
26+
<time class="dt-published" datetime="2017-06-3">3 June 2017</time>
27+
by <span class="p-author">Sven Knebel</span>
28+
</li>
29+
<li class="h-entry">
2530
<span class="p-name e-content">Added test using empty href="" attribute to reference current page</span> &dash;
2631
<time class="dt-published" datetime="2017-05-27">27 May 2017</time>
2732
by <span class="p-author">Sven Knebel</span>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<a class="h-card" href="">Jane Doe</a>
2+
<area class="h-card" href="" alt="Jane Doe"/ >
3+
<div class="h-card" ><a href="">Jane Doe</a><p></p></div>
4+
<div class="h-card" ><area href="">Jane Doe</area><p></p></div>
5+
<div class="h-card" ><a class="h-card" href="">Jane Doe</a><p></p></div>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"items": [{
3+
"type": ["h-card"],
4+
"properties": {
5+
"name": ["Jane Doe"],
6+
"url": ["http://example.com/"]
7+
}
8+
},
9+
{
10+
"type": ["h-card"],
11+
"properties": {
12+
"name": ["Jane Doe"],
13+
"url": ["http://example.com/"]
14+
}
15+
},
16+
{
17+
"type": ["h-card"],
18+
"properties": {
19+
"name": ["Jane Doe"],
20+
"url": ["http://example.com/"]
21+
}
22+
},
23+
{
24+
"type": ["h-card"],
25+
"properties": {
26+
"name": ["Jane Doe"],
27+
"url": ["http://example.com/"]
28+
}
29+
},
30+
{
31+
"type": ["h-card"],
32+
"properties": {
33+
"name": ["Jane Doe"]
34+
},
35+
"children": [{
36+
"type": ["h-card"],
37+
"properties": {
38+
"name": ["Jane Doe"],
39+
"url": ["http://example.com/"]
40+
}
41+
}]
42+
}],
43+
"rels": {},
44+
"rel-urls": {}
45+
}

0 commit comments

Comments
 (0)