/[suikacvs]/markup/html/whatpm/t/xml/comments-2.dat
Suika

Contents of /markup/html/whatpm/t/xml/comments-2.dat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Oct 16 03:39:57 2008 UTC (16 years, 9 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
++ whatpm/t/ChangeLog	16 Oct 2008 03:39:39 -0000
2008-10-16  Wakaba  <wakaba@suika.fam.cx>

	* XML-Parser.t: "xml/pis-2.dat" and "xml/comments-2.dat" are added.

++ whatpm/t/xml/ChangeLog	16 Oct 2008 03:39:53 -0000
2008-10-16  Wakaba  <wakaba@suika.fam.cx>

	* doctypes-2.dat: New test added.

	* comments-2.dat, pis-2.dat: New test data files.

++ whatpm/Whatpm/HTML/ChangeLog	16 Oct 2008 03:36:51 -0000
2008-10-16  Wakaba  <wakaba@suika.fam.cx>

	* Tokenizer.pm.src: New token type END_OF_DOCTYPE_TOKEN added.
	New states DOCTYPE_TAG_STATE and
	BOGUS_DOCTYPE_INTERNAL_SUBSET_AFTER_STATE are added.  (Bogus
	string after the internal subset, which was handled by the state
	BOGUS_DOCTYPE_STATE, are now handled by the new state.)  Support
	for comments, bogus comments, and processing instructions in the
	internal subset.  If there is the internal subset, then emit the
	doctype token before the internal subset (with its
	$token->{has_internal_subset} flag set) and an
	END_OF_DOCTYPE_TOKEN after the internal subset.

++ whatpm/Whatpm/XML/ChangeLog	16 Oct 2008 03:39:19 -0000
2008-10-16  Wakaba  <wakaba@suika.fam.cx>

	* Parser.pm.src: Insertion mode IN_SUBSET_IM added.  In the
	"initial" insertion mode, if the DOCTYPE token's "has internal
	subset" flag is set, then switch to the "in subset" insertion
	mode.

1 #data
2 <!DOCTYPE a[
3 <!---->
4 <?x?>
5 ]><a/>
6 #errors
7 #document
8 | <!DOCTYPE a>
9 | <?x ?>
10 | <{} a>
11
12 #data
13 <!DOCTYPE a[
14 <!--<?y?>-->
15 <?x?>
16 ]><a/>
17 #errors
18 #document
19 | <!DOCTYPE a>
20 | <?x ?>
21 | <{} a>
22
23 #data
24 <!DOCTYPE a[
25 <!---->
26 <?x?>
27 <!--]><b/>-->
28 ]><a/>
29 #errors
30 #document
31 | <!DOCTYPE a>
32 | <?x ?>
33 | <{} a>
34
35 #data
36 <!DOCTYPE a[
37 < >
38 <?x?>
39 ]><a/>
40 #errors
41 2;1;bare stago;;;m
42 #document
43 | <!DOCTYPE a>
44 | <?x ?>
45 | <{} a>
46
47 #data
48 <!DOCTYPE a[
49 <! >
50 <?x?>
51 ]><a/>
52 #errors
53 2;1;bogus comment;;;m
54 #document
55 | <!DOCTYPE a>
56 | <?x ?>
57 | <{} a>
58
59 #data
60 <!DOCTYPE a[
61 <b>bbb</b>ccc
62 <?x?>
63 ]><a/>
64 #errors
65 2;1;bare stago;;;m
66 2;4;string in internal subset;;;m
67 2;7;bare stago;;;m
68 #document
69 | <!DOCTYPE a>
70 | <?x ?>
71 | <{} a>
72
73 #data
74 <!DOCTYPE a[
75 <[[xxxx]]>
76 <?x?>
77 ]><a/>
78 #errors
79 2;1;bare stago;;;m
80 #document
81 | <!DOCTYPE a>
82 | <?x ?>
83 | <{} a>
84
85 #data
86 <!DOCTYPE a[
87 <!--><?y?>
88 ]><a/>
89 #errors
90 2;5;bogus comment;;;m
91 #document
92 | <!DOCTYPE a>
93 | <?y ?>
94 | <{} a>
95
96 #data
97 <!DOCTYPE a[
98 <?x?><!--
99 #errors
100 2;9;unclosed comment;;;m
101 2;9;unclosed internal subset;;;m
102 2;9;no root element;;;m
103 #document
104 | <!DOCTYPE a>
105 | <?x ?>
106
107 #data
108 <!DOCTYPE a[
109 <!---><?y?>
110 ]><a/>
111 #errors
112 2;6;bogus comment;;;m
113 #document
114 | <!DOCTYPE a>
115 | <?y ?>
116 | <{} a>
117
118 #data
119 <!DOCTYPE a[
120 <?x?><!---
121 #errors
122 2;10;unclosed comment;;;m
123 2;10;unclosed internal subset;;;m
124 2;10;no root element;;;m
125 #document
126 | <!DOCTYPE a>
127 | <?x ?>
128
129 #data
130 <!DOCTYPE a[
131 <?x?><!--z
132 #errors
133 2;10;unclosed comment;;;m
134 2;10;unclosed internal subset;;;m
135 2;10;no root element;;;m
136 #document
137 | <!DOCTYPE a>
138 | <?x ?>
139
140 #data
141 <!DOCTYPE a[
142 <?x?><!--z-
143 #errors
144 2;11;unclosed comment;;;m
145 2;11;unclosed internal subset;;;m
146 2;11;no root element;;;m
147 #document
148 | <!DOCTYPE a>
149 | <?x ?>
150
151 #data
152 <!DOCTYPE a[
153 <!--z--><?y?>
154 ]><a/>
155 #errors
156 #document
157 | <!DOCTYPE a>
158 | <?y ?>
159 | <{} a>
160
161 #data
162 <!DOCTYPE a[
163 <?x?><!--z--
164 #errors
165 2;12;unclosed comment;;;m
166 2;12;unclosed internal subset;;;m
167 2;12;no root element;;;m
168 #document
169 | <!DOCTYPE a>
170 | <?x ?>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24