/[suikacvs]/markup/html/whatpm/t/tree-construction/tests3.dat
Suika

Contents of /markup/html/whatpm/t/tree-construction/tests3.dat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Jul 16 07:03:09 2007 UTC (17 years, 3 months ago) by wakaba
Branch: MAIN
Changes since 1.2: +38 -4 lines
++ whatpm/t/ChangeLog	16 Jul 2007 07:03:04 -0000
	* HTML-tokenizer.t: It now requires newer version
	of JSON.pm due to the broken handling for utf8 string
	of older version.  Test data files |test3.test|
	and |test4.test| are added.  Convert surrogate
	pair |\u| escapes in JSON file before it is input
	into JSON.pm parser since it does not decode
	them correctly.  U+000D convertion was incorrect.

	* HTML-tree.t: Support for new format for fragment
	parsing tests.

	* Makefile (tokenizer-files): New test
	data files |test3.test| and |test4.test| are added.

	* tokenizer-test-1.test: Test data for bare |hcro| and
	entity references in attribute values are added.

	* tokenizer-test-2.dat: Test data for U+000D are added.

2007-07-16  Wakaba  <wakaba@suika.fam.cx>

++ whatpm/Whatpm/ChangeLog	16 Jul 2007 06:56:42 -0000
	* HTML.pm.src: The character immediately following
	a bare |hcro| was discarded.  Fix handling of
	entity references in attribute values.

2007-07-16  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.1 #data
2     <head></head><style></style>
3     #errors
4     No DOCTYPE
5     <style> in after-head mode
6     #document
7     | <html>
8     | <head>
9     | <style>
10     | <body>
11    
12     #data
13     <head></head><script></script>
14     #errors
15     No DOCTYPE
16     <script> in after-head mode
17     #document
18     | <html>
19     | <head>
20     | <script>
21     | <body>
22    
23     #data
24     <head></head><!-- --><style></style><!-- --><script></script>
25     #errors
26     No DOCTYPE
27     <style> in after-head mode
28     #document
29     | <html>
30     | <head>
31     | <style>
32     | <script>
33     | <!-- -->
34     | <!-- -->
35     | <body>
36    
37     #data
38     <head></head><!-- -->x<style></style><!-- --><script></script>
39     #errors
40     No DOCTYPE
41     #document
42     | <html>
43     | <head>
44     | <!-- -->
45     | <body>
46     | "x"
47     | <style>
48     | <!-- -->
49     | <script>
50    
51     #data
52 wakaba 1.2 <!DOCTYPE htML><html><head></head><body><pre>
53 wakaba 1.1 </pre></body></html>
54     #errors
55     #document
56 wakaba 1.2 | <!DOCTYPE htML>
57 wakaba 1.1 | <html>
58     | <head>
59     | <body>
60     | <pre>
61    
62     #data
63 wakaba 1.2 <!DOCTYPE htML><html><head></head><body><pre>
64 wakaba 1.1 foo</pre></body></html>
65     #errors
66     #document
67 wakaba 1.2 | <!DOCTYPE htML>
68 wakaba 1.1 | <html>
69     | <head>
70     | <body>
71     | <pre>
72     | "foo"
73    
74 wakaba 1.3 #data
75     <!DOCTYPE htML><html><head></head><body><pre>
76    
77     foo</pre></body></html>
78     #errors
79     #document
80     | <!DOCTYPE htML>
81     | <html>
82     | <head>
83     | <body>
84     | <pre>
85     | "
86     foo"
87 wakaba 1.1
88     #data
89 wakaba 1.2 <!DOCTYPE htML><html><head></head><body><pre>
90 wakaba 1.1 foo
91     </pre></body></html>
92     #errors
93     #document
94 wakaba 1.2 | <!DOCTYPE htML>
95 wakaba 1.1 | <html>
96     | <head>
97     | <body>
98     | <pre>
99     | "foo
100     "
101    
102     #data
103 wakaba 1.2 <!DOCTYPE htML><html><head></head><body><pre>x</pre><span>
104 wakaba 1.1 </span></body></html>
105     #errors
106     #document
107 wakaba 1.2 | <!DOCTYPE htML>
108 wakaba 1.1 | <html>
109     | <head>
110     | <body>
111     | <pre>
112     | "x"
113     | <span>
114     | "
115     "
116    
117     #data
118 wakaba 1.2 <!DOCTYPE htML><html><head></head><body><pre>x
119 wakaba 1.1 y</pre></body></html>
120     #errors
121     #document
122 wakaba 1.2 | <!DOCTYPE htML>
123 wakaba 1.1 | <html>
124     | <head>
125     | <body>
126     | <pre>
127     | "x
128     y"
129    
130     #data
131 wakaba 1.2 <!DOCTYPE htML><html><head></head><body><pre>x<div>
132 wakaba 1.1 y</pre></body></html>
133     #errors
134 wakaba 1.3 End tag <pre> seen too early. Expected other end tag.
135 wakaba 1.1 #document
136 wakaba 1.2 | <!DOCTYPE htML>
137 wakaba 1.1 | <html>
138     | <head>
139     | <body>
140     | <pre>
141     | "x"
142     | <div>
143     | "
144 wakaba 1.3 y"
145 wakaba 1.1
146     #data
147 wakaba 1.2 <!DOCTYPE htML><HTML><META><HEAD></HEAD></HTML>
148 wakaba 1.1 #errors
149 wakaba 1.3 Unexpected start tag HEAD in HEAD. Ignored.
150 wakaba 1.1 #document
151 wakaba 1.2 | <!DOCTYPE htML>
152 wakaba 1.1 | <html>
153     | <head>
154     | <meta>
155     | <body>
156    
157     #data
158 wakaba 1.2 <!DOCTYPE htML><HTML><HEAD><head></HEAD></HTML>
159 wakaba 1.1 #errors
160 wakaba 1.3 Unexpected start tag HEAD in HEAD. Ignored.
161 wakaba 1.1 #document
162 wakaba 1.2 | <!DOCTYPE htML>
163 wakaba 1.1 | <html>
164     | <head>
165     | <body>
166    
167     #data
168     <textarea>foo<span>bar</span><i>baz
169     #errors
170 wakaba 1.3 Unexpected start tag. Expected DOCTYPE.
171     Unexpected end of file.
172 wakaba 1.1 #document
173     | <html>
174     | <head>
175     | <body>
176     | <textarea>
177     | "foo<span>bar</span><i>baz"
178    
179     #data
180     <title>foo<span>bar</em><i>baz
181     #errors
182 wakaba 1.3 Unexpected start tag. Expected DOCTYPE.
183     Unexpected end of file.
184 wakaba 1.1 #document
185     | <html>
186     | <head>
187     | <title>
188     | "foo<span>bar</em><i>baz"
189     | <body>
190 wakaba 1.2
191     #data
192     <!DOCTYPE htML><textarea>
193     </textarea>
194     #errors
195     #document
196     | <!DOCTYPE htML>
197     | <html>
198     | <head>
199     | <body>
200     | <textarea>
201    
202     #data
203     <!DOCTYPE htML><textarea>
204 wakaba 1.3 foo</textarea>
205     #errors
206     #document
207     | <!DOCTYPE htML>
208     | <html>
209     | <head>
210     | <body>
211     | <textarea>
212     | "foo"
213    
214     #data
215     <!DOCTYPE htML><textarea>
216 wakaba 1.2
217     foo</textarea>
218     #errors
219     #document
220     | <!DOCTYPE htML>
221     | <html>
222     | <head>
223     | <body>
224     | <textarea>
225 wakaba 1.3 | "
226     foo"
227 wakaba 1.2
228     #data
229     <!DOCTYPE htML><html><head></head><body><ul><li><div><p><li></ul></body></html>
230     #errors
231     Missing end tag (div)
232     #document
233     | <!DOCTYPE htML>
234     | <html>
235     | <head>
236     | <body>
237     | <ul>
238     | <li>
239     | <div>
240     | <p>
241     | <li>
242    
243     #data
244     <!doctype html><nobr><nobr><nobr>
245     #errors
246 wakaba 1.3 Unexpected <nobr> tag.
247     Unexpected <nobr> tag.
248 wakaba 1.2 Unexpected end of file.
249     #document
250     | <!DOCTYPE html>
251     | <html>
252     | <head>
253     | <body>
254     | <nobr>
255     | <nobr>
256     | <nobr>
257    
258     #data
259     <!doctype html><nobr><nobr></nobr><nobr>
260     #errors
261 wakaba 1.3 Unexpected <nobr> tag.
262 wakaba 1.2 Unexpected end of file.
263     #document
264     | <!DOCTYPE html>
265     | <html>
266     | <head>
267     | <body>
268     | <nobr>
269     | <nobr>
270     | <nobr>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24