-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
70 lines (52 loc) · 1.93 KB
/
Copy pathtest.html
File metadata and controls
70 lines (52 loc) · 1.93 KB
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
<!DOCTYPE html>
<html>
<title>
URI Attribute value <> Raw Text Elements
</title>
<style>
a[title] {background : #fcf}
pre, listing, xmp, plaintext {border : 2px solid #ccc}
</style>
<body>
<nav><a href="https://github.com/">github</a> / <a href="https://github.com/ECMAScript2/htmlparser">ES2 HTML Parser</a> / <a href="./">Blogger Templete Cleaner</a> | Test: URI Attribute value & Raw Text Elements</nav>
<h1>Test: URI Attribute value & Raw Text Elements</h1>
<h2>1. URI Attribute value</h2>
<h3>Unquoted attribute value syntax + URI</h3>
<a title=http://example.com/><a title=http://example.com<u>/></u></a>
<h2>2. Raw Text Elements and Escapable Raw Text Elements</h2>
<table cellspacing="0" border="1">
<thead>
<tr><th><th>Escapable<th>Raw Text Elements<th>Newlines ignored
<tbody>
<tr><th><title><th>✓<th>✓<th>start and end
<tr><th><pre><th>✓<th><th>start and end
<tr><th><listing><th>✓<th><th>start and end
<tr><th><textarea><th>✓<th>✓<th>start
<tr><th><xmp><th><th>✓<th>end
<tr><th><plaintext><th><th>✓<th>end
</table>
<h3>2.1. <pre>, <listing></h3>
<p>Newlines at the beginning and end of the content are treated like optional newline, and ignored.
<pre>
This is <pre>.
This is <pre>.
</pre>
<listing>
<b>This</b> is <listing>.
<b>This</b> is <listing>.
</listing>
<h3>2.2. <textarea></h3>
<p>The leading newline in the contents would be treated like the optional newline, and ignored.
<p>@see <a href="https://html.spec.whatwg.org/multipage/syntax.html#element-restrictions">13.1.2.5 Restrictions on content models</a></p>
<textarea>
This is <textarea>. This is <textarea>.
</textarea>
<h3>2.3. <xmp>, <plaintext></h3>
<p>Newlines at the end are ignored
<xmp>
<b>This</b> is <xmp>. This is <xmp>.
</xmp>
<plaintext>
<b>This</b> is <plaintext>. This is <plaintext>.
</body>
</html>