/[suikacvs]/markup/html/whatpm/t/tokenizer-test-2.dat
Suika

Contents of /markup/html/whatpm/t/tokenizer-test-2.dat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Jul 16 07:03:09 2007 UTC (18 years, 7 months ago) by wakaba
Branch: MAIN
Changes since 1.5: +48 -0 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 #data escaped
2 <!DOCTYPE HTML><html><head><title></title></head><body><p>\u0000</p></body>
3 #errors
4 NULL
5 #document escaped
6 | <!DOCTYPE HTML>
7 | <html>
8 | <head>
9 | <title>
10 | <body>
11 | <p>
12 | "\uFFFD"
13
14 #data escaped
15 \u0000
16 #errors
17 NULL
18 #document-fragment p escaped
19 | "\uFFFD"
20
21 #data escaped
22 <!DOCTYPE HTML><p>\u000D
23 #errors
24 #document escaped
25 | <!DOCTYPE HTML>
26 | <html>
27 | <head>
28 | <body>
29 | <p>
30 | "\u000A"
31
32 #data escaped
33 <!DOCTYPE HTML><p>\u000D</p>
34 #errors
35 #document escaped
36 | <!DOCTYPE HTML>
37 | <html>
38 | <head>
39 | <body>
40 | <p>
41 | "\u000A"
42
43 #data escaped
44 <!DOCTYPE HTML><p>\u000D\u000D
45 #errors
46 #document escaped
47 | <!DOCTYPE HTML>
48 | <html>
49 | <head>
50 | <body>
51 | <p>
52 | "\u000A\u000A"
53
54 #data escaped
55 <!DOCTYPE HTML><p>\u000D\u0000
56 #errors
57 NULL
58 #document escaped
59 | <!DOCTYPE HTML>
60 | <html>
61 | <head>
62 | <body>
63 | <p>
64 | "\u000A\uFFFD"
65
66 #data escaped
67 \u000D
68 #errors
69 #document-fragment p escaped
70 | "\u000A"
71
72 #data escaped
73 \u000D\u000D
74 #errors
75 #document-fragment p escaped
76 | "\u000A\u000A"
77
78 #data escaped
79 \u000Da
80 #errors
81 #document-fragment p escaped
82 | "\u000Aa"
83
84 #data escaped
85 <!DOCTYPE HTML><p>\u000D\u000A</p>
86 #errors
87 #document escaped
88 | <!DOCTYPE HTML>
89 | <html>
90 | <head>
91 | <body>
92 | <p>
93 | "\u000A"
94
95 #data escaped
96 \u000D\u000A
97 #errors
98 #document-fragment p escaped
99 | "\u000A"
100
101 #data escaped
102 <!DOCTYPE HTML><p>\u000A</p>
103 #errors
104 #document escaped
105 | <!DOCTYPE HTML>
106 | <html>
107 | <head>
108 | <body>
109 | <p>
110 | "\u000A"
111
112 #data escaped
113 <!DOCTYPE HTML><p>\u000D\u0000</p>
114 #errors
115 NULL
116 #document escaped
117 | <!DOCTYPE HTML>
118 | <html>
119 | <head>
120 | <body>
121 | <p>
122 | "\u000A\uFFFD"
123
124 #data escaped
125 <!DOCTYPE HTML><p>\u000D\u000D</p>
126 #errors
127 #document escaped
128 | <!DOCTYPE HTML>
129 | <html>
130 | <head>
131 | <body>
132 | <p>
133 | "\u000A\u000A"
134
135 #data escaped
136 \u000A
137 #errors
138 #document-fragment p escaped
139 | "\u000A"
140
141 #data escaped
142 \u000D\u0000
143 #errors
144 NULL
145 #document-fragment p escaped
146 | "\u000A\uFFFD"
147
148 #data escaped
149 \u000D\u000D
150 #errors
151 #document-fragment p escaped
152 | "\u000A\u000A"
153
154 #data
155 <script><!-- </script> --></script>
156 #errors
157 #document-fragment p
158
159 #data
160 <style><!-- </style> --></style>
161 #errors
162 #document-fragment p
163 | <style>
164 | "<!-- </style> -->"
165

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24