1 |
|
2008-10-17 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* Tokenizer.pm.src: New token types AtTLIST_TOKEN, ELEMENT_TOKEN, |
4 |
|
GENERAL_ENTITY_TOKEN, PARAMETER_ENTITY_TOKEN, and NOTATION_TOKEN |
5 |
|
are added. New intertion modes for markup declarations are added. |
6 |
|
|
7 |
|
2008-10-16 Wakaba <wakaba@suika.fam.cx> |
8 |
|
|
9 |
|
* Tokenizer.pm.src: New token type END_OF_DOCTYPE_TOKEN added. |
10 |
|
New states DOCTYPE_TAG_STATE and |
11 |
|
BOGUS_DOCTYPE_INTERNAL_SUBSET_AFTER_STATE are added. (Bogus |
12 |
|
string after the internal subset, which was handled by the state |
13 |
|
BOGUS_DOCTYPE_STATE, are now handled by the new state.) Support |
14 |
|
for comments, bogus comments, and processing instructions in the |
15 |
|
internal subset. If there is the internal subset, then emit the |
16 |
|
doctype token before the internal subset (with its |
17 |
|
$token->{has_internal_subset} flag set) and an |
18 |
|
END_OF_DOCTYPE_TOKEN after the internal subset. |
19 |
|
|
20 |
|
2008-10-15 Wakaba <wakaba@suika.fam.cx> |
21 |
|
|
22 |
|
* Tokenizer.pm.src: $self->{s_kwd} for non-DATA_STATE states are |
23 |
|
renamed as $self->{kwd} to avoid confliction. Don't raise |
24 |
|
case-sensitivity error for the keyword "DOCTYPE" in HTML mode. |
25 |
|
Support for internal subsets (internal subset itself only; no |
26 |
|
declaration in them is supported yet). Raise a parse error for |
27 |
|
non-uppercase keywords "PUBLIC" and "SYSTEM" in XML mode. Raise a |
28 |
|
parse error if no system identifier is specified for a DOCTYPE |
29 |
|
declaration with a public identifier. Don't close the DOCTYPE |
30 |
|
declaration by a ">" character in the system declaration in XML |
31 |
|
mode. |
32 |
|
|
33 |
|
2008-10-15 Wakaba <wakaba@suika.fam.cx> |
34 |
|
|
35 |
|
* Tokenizer.pm.src: Set index attribute to each attribute token, |
36 |
|
for ignoring namespaced duplicate attribute at the XML namespace |
37 |
|
parser layer. Raise a parse error if the attribute value is |
38 |
|
omitted, in XML mode. Raise a parse error if the attribute value |
39 |
|
is not quoted, in XML mode. Raise a parse error if "<" character |
40 |
|
is found in a quoted attribute value, in XML mode. |
41 |
|
|
42 |
|
2008-10-15 Wakaba <wakaba@suika.fam.cx> |
43 |
|
|
44 |
|
* Tokenizer.pm.src: XML tag name start character support for end |
45 |
|
tags. Support for the short end tag syntax of XML5. Raise a |
46 |
|
parse erorr for a lowercase <!doctype> in XML. |
47 |
|
|
48 |
|
2008-10-15 Wakaba <wakaba@suika.fam.cx> |
49 |
|
|
50 |
|
* Tokenizer.pm.src: XML tag name start character support for start |
51 |
|
tags. |
52 |
|
|
53 |
|
2008-10-15 Wakaba <wakaba@suika.fam.cx> |
54 |
|
|
55 |
|
* Tokenizer.pm.src: Support for XML processing instructions. |
56 |
|
|
57 |
|
2008-10-15 Wakaba <wakaba@suika.fam.cx> |
58 |
|
|
59 |
|
* Tokenizer.pm.src: Mark CHARACTER_TOKEN with character reference |
60 |
|
as such, for the support of XML parse error. |
61 |
|
|
62 |
|
2008-10-14 Wakaba <wakaba@suika.fam.cx> |
63 |
|
|
64 |
|
* Tokenizer.pm.src: Parse error if CDATA section is not closed or |
65 |
|
is placed outside of the root element. |
66 |
|
|
67 |
2008-10-14 Wakaba <wakaba@suika.fam.cx> |
2008-10-14 Wakaba <wakaba@suika.fam.cx> |
68 |
|
|
69 |
* Tokenizer.pm.src: Raise a parse error for XML "]]>" other than |
* Tokenizer.pm.src: Raise a parse error for XML "]]>" other than |