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