-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
298 lines (255 loc) · 10.4 KB
/
test.html
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>create-mailto.js test</title>
<script defer src="../create-mailto.js"></script>
<script defer src="test.js"></script>
<link rel="stylesheet" href="../assets/css/test.css">
</head>
<body>
<header>
<h1>create-mailto.js test</h1>
<p class="results">
<label>
tests:
<output class="testsCount">not summed</output>
</label>
<label>
errors:
<output class="errorsCount">unknown</output>
</label>
<label>
result:
<output class="passFail">unknown</output>
</label>
</p>
</header>
<main>
<p>
This page tests create-mailto.js on different
<abbr title="hypertext markup language">HTML</abbr>
fragments. The table below contains one example per row.
The first column shows a code fragment that can be modified
to include a <code>mailto:</code> link. The second
shows your browser's rendering of that fragment after
being processed by create-mailto.js.
</p>
<p>
The test passes if each row contains one
<code><a href="mailto:"></code> link.
</p>
<table>
<thead>
<tr>
<th>
<abbr title="hypertext markup language">HTML</abbr> code fragment
</th>
<th>
browser rendering
</th>
</tr>
</thead>
<tbody class="mailtoYep">
<tr>
<td>
<figure>
<figcaption>
inline element with single class name and one child text node
</figcaption>
<code>
<span class="email">[email protected]</span>
</code>
</figure>
</td>
<td>
<span class="email">[email protected]</span>
</td>
</tr>
<tr>
<td>
<figure>
<figcaption>
block element with two class names and one child text node
</figcaption>
<code>
<p class="email foo">[email protected]</p>
</code>
</figure>
</td>
<td>
<p class="email foo">[email protected]</p>
</td>
</tr>
<tr>
<td>
<figure>
<figcaption>
inline element with itemprop attribute
</figcaption>
<code>
<b itemprop="email">[email protected]</b>
</code>
</figure>
</td>
<td>
<b itemprop="email">[email protected]</b>
</td>
</tr>
<tr>
<td>
<figure>
<figcaption>
inline element with itemprop attribute
</figcaption>
<code>
<span itemprop="email foo">[email protected]</span>
</code>
</figure>
</td>
<td>
<span itemprop="email foo">[email protected]</span>
</td>
</tr>
<tr>
<td>
<figure>
<figcaption>
inline element with data-email attribute
</figcaption>
<code>
<em
data-email="[email protected]">email
me</em>
</code>
</figure>
</td>
<td>
<em data-email="[email protected]">email me</em>
</td>
</tr>
<tr>
<td>
<figure>
<figcaption>
inline elements with 2 class names
</figcaption>
<code>
<span class="email
foo"><i>username</i>@example.com</span>
</code>
</figure>
</td>
<td>
<span class="email foo"><i>username</i>@example.com</span>
</td>
</tr>
<tr>
<td>
<figure>
<figcaption>
block element with itemprop attribute and a child inline element
</figcaption>
<code>
<p itemprop="email
foo"><i>username</i>@example.com</p>
</code>
</figure>
</td>
<td>
<p itemprop="email foo"><i>username</i>@example.com</p>
</td>
</tr>
<tr>
<td>
<figure>
<figcaption>
block element with data-email attribute and a child inline element
</figcaption>
<code>
<pre><div data-email="[email protected]">
<em>email</em> me
</div></pre>
</code>
</figure>
</td>
<td>
<div data-email="[email protected]"><em>email</em> me</div>
</td>
</tr>
<tr>
<td>
<figure>
<figcaption>
image with data-email attribute
</figcaption>
<code>
<img data-email="[email protected]" ... >
</code>
</figure>
</td>
<td>
<img data-email="[email protected]"
src="demo.png" alt="test" width="300" height="300">
</td>
</tr>
<tr>
<td>
<figure>
<figcaption>
blockquote with data-email attribute and child paragraph element
</figcaption>
<code>
<pre><blockquote data-email="[email protected]">
<p>Lorem ipsum dolor sit amet....</p>
</blockquote></pre>
</code>
</figure>
</td>
<td>
<blockquote data-email="[email protected]">
<p>
Lorem ipsum dolor sit amet....
</p>
</blockquote>
</td>
</tr>
<tr>
<td>
<figure>
<figcaption>
svg element with class attribute
</figcaption>
<code>
<pre><svg class="email">
<circle/>
<text>[email protected]</text>
</svg></pre>
</code>
</figure>
</td>
<td>
<svg class="email"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0
512 512">
<circle r="240" cx="256" cy="256" />
<text font-size="46" fill="#fff" x="50%"
y="50%" text-anchor="middle"
dominant-baseline="middle">
</text>
</svg>
</td>
</tr>
</tbody>
</table>
</main>
<footer>
<address class="h-card">
<p>
<a class="p-name u-url" href="https://github.com/btrem">Brian Tremblay</a>
</p>
</address>
</footer>
</body>
</html>