| 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> |
2008-10-15 Wakaba <wakaba@suika.fam.cx> |
| 28 |
|
|
| 29 |
* Tokenizer.pm.src: Set index attribute to each attribute token, |
* Tokenizer.pm.src: Set index attribute to each attribute token, |