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
|
// For documentation of the format, see README in this directory.
var browserTests = [
["foo[]bar",
[["unlink",""]],
"foo[]bar",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<p>[foo</p> <p>bar]</p>",
[["unlink",""]],
"<p>[foo</p> <p>bar]</p>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<span>[foo</span> <span>bar]</span>",
[["unlink",""]],
"<span>[foo</span> <span>bar]</span>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>",
[["unlink",""]],
"<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<b>foo[]bar</b>",
[["unlink",""]],
"<b>foo[]bar</b>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<i>foo[]bar</i>",
[["unlink",""]],
"<i>foo[]bar</i>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<span>foo</span>{}<span>bar</span>",
[["unlink",""]],
"<span>foo</span>{}<span>bar</span>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<span>foo[</span><span>]bar</span>",
[["unlink",""]],
"<span>foo[</span><span>]bar</span>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["foo[bar]baz",
[["unlink",""]],
"foo[bar]baz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["foo[bar<b>baz]qoz</b>quz",
[["unlink",""]],
"foo[bar<b>baz]qoz</b>quz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["foo[bar<i>baz]qoz</i>quz",
[["unlink",""]],
"foo[bar<i>baz]qoz</i>quz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["{<p><p> <p>foo</p>}",
[["unlink",""]],
"{<p></p><p> </p><p>foo</p>}",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<a href=http://www.google.com/>foo[bar]baz</a>",
[["unlink",""]],
"foo[bar]baz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<a href=http://www.google.com/>foo[barbaz</a>}",
[["unlink",""]],
"foo[barbaz}",
[true],
{"unlink":[false,false,"",false,false,""]}],
["{<a href=http://www.google.com/>foobar]baz</a>",
[["unlink",""]],
"{foobar]baz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["{<a href=http://www.google.com/>foobarbaz</a>}",
[["unlink",""]],
"{foobarbaz}",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<a href=http://www.google.com/>[foobarbaz]</a>",
[["unlink",""]],
"[foobarbaz]",
[true],
{"unlink":[false,false,"",false,false,""]}],
["foo<a href=http://www.google.com/>b[]ar</a>baz",
[["unlink",""]],
"foob[]arbaz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["foo<a href=http://www.google.com/>[bar]</a>baz",
[["unlink",""]],
"foo[bar]baz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["foo[<a href=http://www.google.com/>bar</a>]baz",
[["unlink",""]],
"foo[bar]baz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["foo<a href=http://www.google.com/>[bar</a>baz]",
[["unlink",""]],
"foo[barbaz]",
[true],
{"unlink":[false,false,"",false,false,""]}],
["[foo<a href=http://www.google.com/>bar]</a>baz",
[["unlink",""]],
"[foobar]baz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["[foo<a href=http://www.google.com/>bar</a>baz]",
[["unlink",""]],
"[foobarbaz]",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<a id=foo href=http://www.google.com/>foobar[]baz</a>",
[["unlink",""]],
"<a id=\"foo\">foobar[]baz</a>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<a id=foo href=http://www.google.com/>foo[bar]baz</a>",
[["unlink",""]],
"<a id=\"foo\">foo[bar]baz</a>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<a id=foo href=http://www.google.com/>[foobarbaz]</a>",
[["unlink",""]],
"<a id=\"foo\">[foobarbaz]</a>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["foo<a id=foo href=http://www.google.com/>[bar]</a>baz",
[["unlink",""]],
"foo<a id=\"foo\">[bar]</a>baz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["foo[<a id=foo href=http://www.google.com/>bar</a>]baz",
[["unlink",""]],
"foo[<a id=\"foo\">bar</a>]baz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["[foo<a id=foo href=http://www.google.com/>bar</a>baz]",
[["unlink",""]],
"[foo<a id=\"foo\">bar</a>baz]",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<a name=foo>foobar[]baz</a>",
[["unlink",""]],
"<a name=\"foo\">foobar[]baz</a>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<a name=foo>foo[bar]baz</a>",
[["unlink",""]],
"<a name=\"foo\">foo[bar]baz</a>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["<a name=foo>[foobarbaz]</a>",
[["unlink",""]],
"<a name=\"foo\">[foobarbaz]</a>",
[true],
{"unlink":[false,false,"",false,false,""]}],
["foo<a name=foo>[bar]</a>baz",
[["unlink",""]],
"foo<a name=\"foo\">[bar]</a>baz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["foo[<a name=foo>bar</a>]baz",
[["unlink",""]],
"foo[<a name=\"foo\">bar</a>]baz",
[true],
{"unlink":[false,false,"",false,false,""]}],
["[foo<a name=foo>bar</a>baz]",
[["unlink",""]],
"[foo<a name=\"foo\">bar</a>baz]",
[true],
{"unlink":[false,false,"",false,false,""]}],
["[foo<a href=https://example.com class=bold>bar</a>baz]",
[["stylewithcss", "false"], ["unlink",""]],
"foobarbaz",
[true, true],
{"unlink":[false,false,"",false,false,""]}],
["foo<a href=https://example.com class=bold>[bar]</a>baz",
[["stylewithcss", "false"], ["unlink",""]],
"foobarbaz",
[true, true],
{"unlink":[false,false,"",false,false,""]}],
["[foo<a href=https://example.com class=bold>bar</a>baz]",
[["stylewithcss", "true"], ["unlink",""]],
"foobarbaz",
[true, true],
{"unlink":[false,false,"",false,false,""]}],
["foo<a href=https://example.com class=bold>[bar]</a>baz",
[["stylewithcss", "true"], ["unlink",""]],
"foobarbaz",
[true, true],
{"unlink":[false,false,"",false,false,""]}],
["[foo<a href=https://example.com style=font-weight:bold>bar</a>baz]",
[["stylewithcss", "false"], ["unlink",""]],
"foo<b>bar</b>baz",
[true, true],
{"unlink":[false,false,"",false,false,""]}],
["foo<a href=https://example.com style=font-weight:bold>[bar]</a>baz",
[["stylewithcss", "false"], ["unlink",""]],
"foo<b>bar</b>baz",
[true, true],
{"unlink":[false,false,"",false,false,""]}],
["[foo<a href=https://example.com style=font-weight:bold>bar</a>baz]",
[["stylewithcss", "true"], ["unlink",""]],
"foo<span style=\"font-weight:bold\">bar</span>baz",
[true, true],
{"unlink":[false,false,"",false,false,""]}],
["foo<a href=https://example.com style=font-weight:bold>[bar]</a>baz",
[["stylewithcss", "true"], ["unlink",""]],
"foo<span style=\"font-weight:bold\">bar</span>baz",
[true, true],
{"unlink":[false,false,"",false,false,""]}],
]
|