/[suikacvs]/markup/html/whatpm/t/xml/elements-1.dat
Suika

Contents of /markup/html/whatpm/t/xml/elements-1.dat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Oct 15 10:50:38 2008 UTC (16 years, 9 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -0 lines
++ whatpm/t/xml/ChangeLog	15 Oct 2008 10:50:31 -0000
	* attrs-1.dat: Test cases for tokenizing errors are added.

	* elements-1.dat: A test result updated.

	* ns-attrs-1.dat: Test results updated.  New test cases for
	duplicate namespaced attributes are added.

2008-10-15  Wakaba  <wakaba@suika.fam.cx>

++ whatpm/Whatpm/HTML/ChangeLog	15 Oct 2008 10:48:03 -0000
	* Tokenizer.pm.src: Set index attribute to each attribute token,
	for ignoring namespaced duplicate attribute at the XML namespace
	parser layer.  Raise a parse error if the attribute value is
	omitted, in XML mode.  Raise a parse error if the attribute value
	is not quoted, in XML mode.  Raise a parse error if "<" character
	is found in a quoted attribute value, in XML mode.

2008-10-15  Wakaba  <wakaba@suika.fam.cx>

++ whatpm/Whatpm/XML/ChangeLog	15 Oct 2008 10:49:16 -0000
	* Parser.pm.src: Use source order to determine which attribute is
	duplicate.  Preserve duplicate namespaced attributes as
	non-namespaced attributes.

2008-10-15  Wakaba  <wakaba@suika.fam.cx>

1 #data
2 <a/>
3 #errors
4 #document
5 | <{} a>
6
7 #data
8 <A/>
9 #errors
10 #document
11 | <{} A>
12
13 #data
14 <ab/>
15 #errors
16 #document
17 | <{} ab>
18
19 #data
20 <aB/>
21 #errors
22 #document
23 | <{} aB>
24
25 #data
26 <ABCDEFG/>
27 #errors
28 #document
29 | <{} ABCDEFG>
30
31 #data
32 <a></a>
33 #errors
34 #document
35 | <{} a>
36
37 #data
38 <A></A>
39 #errors
40 #document
41 | <{} A>
42
43 #data
44 <ABC></ABC>
45 #errors
46 #document
47 | <{} ABC>
48
49 #data
50 <camelCase></camelCase>
51 #errors
52 #document
53 | <{} camelCase>
54
55 #data
56 <abc></ABC>x
57 #errors
58 1;6;unmatched end tag;ABC;;m
59 1;12;in body:#eof;;;m
60 #document
61 | <{} abc>
62 | "x"
63
64 #data
65 <ABC></abc>x
66 #errors
67 1;6;unmatched end tag;abc;;m
68 1;12;in body:#eof;;;m
69 #document
70 | <{} ABC>
71 | "x"
72
73 #data
74 <[]abc/>
75 #errors
76 #document
77 | <{} []abc>
78
79 #data
80 <{} abc/>
81 #errors
82 1;8;no attr value;;;m
83 #document
84 | <{} {}>
85 | abc=""
86
87 #data escaped
88 <\u4e00\u4e01/>
89 #errors
90 #document escaped
91 | <{} \u4e00\u4e01>
92
93 #data
94 <[]a></[]a>
95 #errors
96 #document
97 | <{} []a>
98
99 #data escaped
100 <\u4e00\u4e01></\u4e00\u4e01>
101 #errors
102 #document escaped
103 | <{} \u4e00\u4e01>
104
105 #data
106 <:></:>
107 #errors
108 #document
109 | <{} :>
110
111 #data
112 <:a:></:a:>
113 #errors
114 #document
115 | <{} :a:>
116
117 #data
118 <a></><!---->
119 #errors
120 1;4;empty end tag;;;m
121 #document
122 | <{} a>
123 | <!-- -->
124
125 #data
126 <a><b><c></></></a>
127 #errors
128 1;10;empty end tag;;;m
129 1;13;empty end tag;;;m
130 #document
131 | <{} a>
132 | <{} b>
133 | <{} c>
134
135 #data
136 <a></ >
137 #errors
138 1;4;bogus end tag;;;m
139 1;7;in body:#eof;;;m
140 #document
141 | <{} a>
142 | <!-- -->
143
144 #data escaped
145 <\u4e00\u4e01>a</\u3000\u3001>b</\u4e00\u4e01>
146 #errors escaped
147 1;6;unmatched end tag;\u3000\u3001;;m
148 #document escaped
149 | <{} \u4e00\u4e01>
150 | "ab"

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24