1 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* HTML.pm.src: Use |read| instead of |getc|. |set_inner_html| |
4 |
|
would report character error from now. |
5 |
|
|
6 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
7 |
|
|
8 |
|
* HTML.pm.src: White-space-leaded non-white-space character |
9 |
|
tokens in "before head insertion mode" was not |
10 |
|
correctly handled. |
11 |
|
(set_inner_html): Reimplemented using CharString decodehandle |
12 |
|
class. Support for $get_wrapper argument. Support |
13 |
|
for |{read_until}| feature. |
14 |
|
|
15 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
16 |
|
|
17 |
|
* HTML.pm.src: Make a "bare ero" error for unknown |
18 |
|
entities point the "&" character. |
19 |
|
|
20 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
21 |
|
|
22 |
|
* HTML.pm.src: It turns out that U+FFFD don't have to |
23 |
|
be added to the list of excluded characters. |
24 |
|
|
25 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
26 |
|
|
27 |
|
* HTML.pm.src ($char_onerror): Have character decoder's |line| |
28 |
|
and |column| a higher priority than the one set by the |
29 |
|
tokenizer's input handler. |
30 |
|
($self->{read_until}): Exclude U+FFFD (but this might |
31 |
|
not be necessary, since now we do line/column fixup in |
32 |
|
the character decode handle). |
33 |
|
|
34 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
35 |
|
|
36 |
|
* HTML.pm.src: Use |{read_until}| where possible. |
37 |
|
|
38 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
39 |
|
|
40 |
|
* HTML.pm.src: Change |{getc_until}| to |{read_until}| |
41 |
|
and |manakai_getc_until| to |manakai_read_until| to |
42 |
|
reduce the number of string copies. |
43 |
|
|
44 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
45 |
|
|
46 |
|
* HTML.pm.src (parse_char_string): Use newly created |
47 |
|
|Whatpm::Charset::DecodeHandle::CharString| instead of Perl's |
48 |
|
standard feature to |open| a string as a filehandle, |
49 |
|
since Perl's string filehandle seems not supporting |ungetc| |
50 |
|
method correctly. |
51 |
|
(parse_char_stream): Define |{getc_until}| method. |
52 |
|
(DATA_STATE): Experimental support for |getc_until| feature. |
53 |
|
|
54 |
|
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
55 |
|
|
56 |
|
* HTML.pm.src: Check points added to newly added branches. |
57 |
|
|
58 |
|
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
59 |
|
|
60 |
|
* HTML.pm.src: Remove |{char}|, which is no longer used. |
61 |
|
Remove |{entity_in_attr}| and |{last_attribute_value_state}| |
62 |
|
and replaced by |{prev_state}|. |
63 |
|
|
64 |
|
* mkhtmlparser.pl: Remove |{char}| feature. |
65 |
|
Remove |!!!back-next-input-character;| macro. |
66 |
|
|
67 |
|
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
68 |
|
|
69 |
|
* HTML.pm.src: Finally we get rid of all the inner loops. Remove |
70 |
|
entity related tokenizer states in favor of new states |
71 |
|
implementing the consume character reference algorithm. |
72 |
|
|
73 |
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
74 |
|
|
75 |
* HTML.pm: "Consume a character reference" algorithm is |
* HTML.pm.src: "Consume a character reference" algorithm is |
76 |
now implemented as a tokenizer's state, rather than |
now implemented as a tokenizer's state, rather than |
77 |
a method, with minimum changes (more changes will |
a method, with minimum changes (more changes will |
78 |
be made, in due course). "Bogus comment state"'s inner |
be made, in due course). "Bogus comment state"'s inner |
80 |
|
|
81 |
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
82 |
|
|
83 |
* HTML.pm: Make |PUBLIC| and |SYSTEM| keyword tokenizing |
* HTML.pm.src: Make |PUBLIC| and |SYSTEM| keyword tokenizing |
84 |
into their own tokenizer states. |
into their own tokenizer states. |
85 |
|
|
86 |
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
2008-09-13 Wakaba <wakaba@suika.fam.cx> |