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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Jun 23 02:09:06 2007 UTC (18 years, 1 month ago) by wakaba
Branch: MAIN
Tests from html5lib are now part of Whatpm CVS repository

1 wakaba 1.1 {"tests": [
2    
3     {"description":"PLAINTEXT content model flag",
4     "contentModelFlags":["PLAINTEXT"],
5     "input":"<head>&body;",
6     "output":[["Character", "<head>&body;"]]},
7    
8     {"description":"End tag closing RCDATA or CDATA",
9     "contentModelFlags":["RCDATA", "CDATA"],
10     "lastStartTag":"bar",
11     "input":"foo</bar>",
12     "output":[["Character", "foo"], ["EndTag", "bar"]]},
13    
14     {"description":"End tag with incorrect name in RCDATA or CDATA",
15     "contentModelFlags":["RCDATA", "CDATA"],
16     "lastStartTag":"baz",
17     "input":"</foo>bar</baz>",
18     "output":["ParseError", ["Character", "</foo>bar"], ["EndTag", "baz"]]},
19    
20     {"description":"End tag closing RCDATA or CDATA, switching back to PCDATA",
21     "contentModelFlags":["RCDATA", "CDATA"],
22     "lastStartTag":"bar",
23     "input":"foo</bar></baz>",
24     "output":[["Character", "foo"], ["EndTag", "bar"], ["EndTag", "baz"]]},
25    
26     {"description":"CDATA w/ something looking like an entity",
27     "contentModelFlags":["CDATA"],
28     "input":"&foo;",
29     "output":[["Character", "&foo;"]]},
30    
31     {"description":"RCDATA w/ an entity",
32     "contentModelFlags":["RCDATA"],
33     "input":"&lt;",
34     "output":[["Character", "<"]]}
35    
36     ]}

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24