Parent Directory
|
Revision Log
++ whatpm/t/ChangeLog 19 Oct 2008 09:24:46 -0000 * XML-Parser.t: "xml/entrefs-1.dat" added. 2008-10-19 Wakaba <wakaba@suika.fam.cx> ++ whatpm/t/xml/ChangeLog 19 Oct 2008 09:25:15 -0000 * charrefs-1.dat: New test data added. * entrefs-1.dat: New test data file. * attlists-1.dat: Test results updated. 2008-10-19 Wakaba <wakaba@suika.fam.cx> ++ whatpm/Whatpm/HTML/ChangeLog 19 Oct 2008 09:23:24 -0000 * Tokenizer.pm.src: Make uppercase "&#X" in XML a parse error. Remove the limitation of entity name length. Enable replacement of text-only general entities. Raise a parse error for an unparsed entity reference. Raise a parse error for a general entity reference to an undefined entity. 2008-10-19 Wakaba <wakaba@suika.fam.cx> ++ whatpm/Whatpm/XML/ChangeLog 19 Oct 2008 09:24:32 -0000 * Parser.pm.src: Define predefined general entities for the control of "undeclared entity" error raised by the tokenizer. Set text-only flag to general entities appropriately. 2008-10-19 Wakaba <wakaba@suika.fam.cx>
| 1 | 2008-10-19 Wakaba <[email protected]> |
| 2 | |
| 3 | * Tokenizer.pm.src: Make uppercase "&#X" in XML a parse error. |
| 4 | Remove the limitation of entity name length. Enable replacement |
| 5 | of text-only general entities. Raise a parse error for an |
| 6 | unparsed entity reference. Raise a parse error for a general |
| 7 | entity reference to an undefined entity. |
| 8 | |
| 9 | 2008-10-19 Wakaba <[email protected]> |
| 10 | |
| 11 | * Tokenizer.pm.src: Support for <!ELEMENT>. |
| 12 | (AFTER_NOTATION_NAME_STATE): Renamed as |AFTER_MD_DEF_STATE| (i.e. |
| 13 | after markup declaration definition state). |
| 14 | |
| 15 | 2008-10-19 Wakaba <[email protected]> |
| 16 | |
| 17 | * Tokenizer.pm.src: Support for EntityValue. |
| 18 | |
| 19 | 2008-10-19 Wakaba <[email protected]> |
| 20 | |
| 21 | * Dumper.pm: Dump text content of Entity nodes. |
| 22 | |
| 23 | * Tokenizer.pm.src: Support for <!ENTITY ... NDATA>. |
| 24 | |
| 25 | 2008-10-19 Wakaba <[email protected]> |
| 26 | |
| 27 | * Tokenizer.pm.src (_get_next_token): Make keywords 'ENTITY', |
| 28 | 'ELEMENT', 'ATTLIST', and 'NOTATION' ASCII case-insensitive. |
| 29 | |
| 30 | 2008-10-18 Wakaba <[email protected]> |
| 31 | |
| 32 | * Tokenizer.pm.src: Modifies PUBLIC/SYSTEM identifier tokenizer |
| 33 | states such that <!ENTITY> and <!NOTATION> can be tokenized by |
| 34 | those states as well. |
| 35 | (BOGUS_MD_STATE): A new state; used for bogus markup declarations, |
| 36 | in favor of BOGUS_COMMENT_STATE. |
| 37 | |
| 38 | 2008-10-18 Wakaba <[email protected]> |
| 39 | |
| 40 | * Tokenizer.pm.src: <!ATTLIST> in the internal subset of an XML |
| 41 | document, is now fully implemented. |
| 42 | |
| 43 | * Dumper.pm (dumptree): Output allowed tokens and default value |
| 44 | always. |
| 45 | |
| 46 | 2008-10-17 Wakaba <[email protected]> |
| 47 | |
| 48 | * Tokenizer.pm.src: New token types AtTLIST_TOKEN, ELEMENT_TOKEN, |
| 49 | GENERAL_ENTITY_TOKEN, PARAMETER_ENTITY_TOKEN, and NOTATION_TOKEN |
| 50 | are added. New intertion modes for markup declarations are added. |
| 51 | |
| 52 | 2008-10-16 Wakaba <[email protected]> |
| 53 | |
| 54 | * Tokenizer.pm.src: New token type END_OF_DOCTYPE_TOKEN added. |
| 55 | New states DOCTYPE_TAG_STATE and |
| 56 | BOGUS_DOCTYPE_INTERNAL_SUBSET_AFTER_STATE are added. (Bogus |
| 57 | string after the internal subset, which was handled by the state |
| 58 | BOGUS_DOCTYPE_STATE, are now handled by the new state.) Support |
| 59 | for comments, bogus comments, and processing instructions in the |
| 60 | internal subset. If there is the internal subset, then emit the |
| 61 | doctype token before the internal subset (with its |
| 62 | $token->{has_internal_subset} flag set) and an |
| 63 | END_OF_DOCTYPE_TOKEN after the internal subset. |
| 64 | |
| 65 | 2008-10-15 Wakaba <[email protected]> |
| 66 | |
| 67 | * Tokenizer.pm.src: $self->{s_kwd} for non-DATA_STATE states are |
| 68 | renamed as $self->{kwd} to avoid confliction. Don't raise |
| 69 | case-sensitivity error for the keyword "DOCTYPE" in HTML mode. |
| 70 | Support for internal subsets (internal subset itself only; no |
| 71 | declaration in them is supported yet). Raise a parse error for |
| 72 | non-uppercase keywords "PUBLIC" and "SYSTEM" in XML mode. Raise a |
| 73 | parse error if no system identifier is specified for a DOCTYPE |
| 74 | declaration with a public identifier. Don't close the DOCTYPE |