File: implied_url.html

package info (click to toggle)
mf2py 2.0.1-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 664 kB
  • sloc: python: 1,917; makefile: 19
file content (144 lines) | stat: -rw-r--r-- 3,346 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <title>Implied Photo</title>
</head>
<body>

<!--if a.h-x[href] or area.h-x[href] then use that [href] for url-->
<a class="h-entry" href="http://example.com">this be link</a>

<area class="h-entry" href="http://example.com"/>

<!--else if .h-x>a[href]:only-of-type:not[.h-*], then use that [href] for url-->
<article class="h-entry">
    <a href="http://example.com">this be link</a>
</article>

<article class="h-entry">
    <a href="http://example.com">this be link</a>
    <span> test </span>
</article>

<!--else if .h-x>area[href]:only-of-type:not[.h-*], then use that [href] for url-->
<article class="h-entry">
    <area href="http://example.com"/>
</article>

<article class="h-entry">
    <area href="http://example.com"/>
    <span> test </span>
</article>

<!--else if .h-x>:only-child:not[.h-*]>a[href]:only-of-type:not[.h-*], then use that [href] for url-->
<article class="h-entry">
    <div>
        <a href="http://example.com">this be link</a>
    </div>
</article>

<article class="h-entry">
    <div>
        <a href="http://example.com">this be link</a>
        <span>test</span>
    </div>
</article>

<!--else if .h-x>:only-child:not[.h-*]>area[href]:only-of-type:not[.h-*], then use that [href] for url -->
<article class="h-entry">
    <div>
        <area href="http://example.com"/>
    </div>
</article>

<article class="h-entry">
    <div>
        <area href="http://example.com"/>
        <span>test</span>
    </div>
</article>

<!--priority tests; prefer <a> over <area>-->

<article class="h-entry">
    <area href="http://example.com/not"/>
    <a href="http://example.com">this be link</a>
</article>

<article class="h-entry">
    <div>
        <area href="http://example.com/not"/>
        <a href="http://example.com">this be link</a>
    </div>
</article>

<!-- no url tests -->
<article class="h-entry">
    <a href="http://example.com">this be link</a>
    <a href="http://example.com/2">this be link</a>
</article>

<article class="h-entry">
    <a class="h-cite" href="http://example.com">this be link</a>
</article>

<article class="h-entry">
    <area href="http://example.com"/>
    <area href="http://example.com/2"/>
</article>

<article class="h-entry">
    <area class="h-cite" href="http://example.com"/>
</article>


<article class="h-entry">
    <div>
        <a href="http://example.com">this be link</a>
    </div>
    <span>test</span>
</article>

<article class="h-entry">
    <div class="h-cite">
        <a href="http://example.com">this be link</a>
    </div>
</article>

<article class="h-entry">
    <div>
        <a href="http://example.com">this be link</a>
        <a href="http://example.com/2">this be link</a>
    </div>
</article>

<article class="h-entry">
    <div class="h-cite">
        <a class="h-cite" href="http://example.com">this be link</a>
    </div>
</article>

<article class="h-entry">
    <div>
        <area href="http://example.com"/>
    </div>
    <span>test</span>
</article>

<article class="h-entry">
    <div class="h-cite">
        <area href="http://example.com"/>
    </div>
</article>

<article class="h-entry">
    <div>
        <area href="http://example.com"/>
        <area href="http://example.com/2"/>
    </div>
</article>


</body>
</html>