/[suikacvs]/markup/html/whatpm/t/tokenizer/escapeFlag.test
Suika

Contents of /markup/html/whatpm/t/tokenizer/escapeFlag.test

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Oct 4 17:16:02 2008 UTC (16 years, 9 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +15 -15 lines
++ whatpm/t/ChangeLog	4 Oct 2008 17:15:55 -0000
2008-10-05  Wakaba  <wakaba@suika.fam.cx>

	* HTML-tree.t: New test files added.

	* Makefile: New test files added.

++ whatpm/Whatpm/ChangeLog	4 Oct 2008 17:15:20 -0000
2008-10-05  Wakaba  <wakaba@suika.fam.cx>

	* HTML.pm.src: An AAA bug fixed.

1 {"tests": [
2
3 {"description":"Commented close tag in [R]CDATA",
4 "contentModelFlags":["RCDATA", "CDATA"],
5 "lastStartTag":"pre",
6 "input":"foo<!--</pre>--></pre>",
7 "output":[["Character", "foo<!--</pre>-->"], ["EndTag", "pre"]]},
8
9 {"description":"Bogus comment in [R]CDATA",
10 "contentModelFlags":["RCDATA", "CDATA"],
11 "lastStartTag":"pre",
12 "input":"foo<!-->baz</pre>",
13 "output":[["Character", "foo<!-->baz"], ["EndTag", "pre"]]},
14
15 {"description":"End tag surrounded by bogus comment in [R]CDATA",
16 "contentModelFlags":["RCDATA", "CDATA"],
17 "lastStartTag":"pre",
18 "input":"foo<!--></pre><!-->baz</pre>",
19 "output":[["Character", "foo<!-->"], ["EndTag", "pre"], "ParseError", ["Comment", ""], ["Character", "baz"], ["EndTag", "pre"]]},
20
21 {"description":"Commented entities in RCDATA",
22 "contentModelFlags":["RCDATA"],
23 "lastStartTag":"pre",
24 "input":" &amp; <!-- &amp; --> &amp; </pre>",
25 "output":[["Character", " & <!-- &amp; --> & "], ["EndTag", "pre"]]},
26
27 {"description":"Incorrect comment ending sequences in [R]CDATA",
28 "contentModelFlags":["RCDATA", "CDATA"],
29 "lastStartTag":"pre",
30 "input":"foo<!-- x --x>x-- >x--!>x--<></pre>",
31 "output":[["Character", "foo<!-- x --x>x-- >x--!>x--<></pre>"]]}
32
33 ]}

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24