1 |
|
2008-09-15 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* HTML.pm.src: New state |PCDATA_STATE|. Use an empty string for |
4 |
|
|{s_kwd}| in DATA_STATE as default. |
5 |
|
|
6 |
|
2008-09-15 Wakaba <wakaba@suika.fam.cx> |
7 |
|
|
8 |
|
* HTML.pm.src, mkhtmlparser.pl: Replace |{prev_char}| |
9 |
|
by |{s_kwd}| in DATA_STATE. |
10 |
|
|
11 |
|
2008-09-15 Wakaba <wakaba@suika.fam.cx> |
12 |
|
|
13 |
|
* HTML.pm.src: Shorten keys. |
14 |
|
|
15 |
|
2008-09-15 Wakaba <wakaba@suika.fam.cx> |
16 |
|
|
17 |
|
* HTML.pm.src: Remove checking for control character, surrogate |
18 |
|
pair, or noncharacter code points and non-Unicode code |
19 |
|
points (they should be handled by Whatpm::Charset::UnicodeChecker). |
20 |
|
(parse_char_stream): Support for the |$get_wrapper| argument and |
21 |
|
character stream error handlers. |
22 |
|
|
23 |
|
2008-09-15 Wakaba <wakaba@suika.fam.cx> |
24 |
|
|
25 |
|
* ContentChecker.pm: Don't call |loda_ns_module| |
26 |
|
for null-namespace elements/attributes. |
27 |
|
|
28 |
|
* HTML.pm.src: Fact out $disallowed_control_chars |
29 |
|
as a hash. |
30 |
|
|
31 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
32 |
|
|
33 |
|
* HTML.pm.src: Regexp typo fixed. |{prev_char}| |
34 |
|
and |{next_char}| initializations are moved to initialization |
35 |
|
method. |{read_until}| now supports buffering. Sync |set_inner_html| |
36 |
|
with |parse_char_stream|. |
37 |
|
|
38 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
39 |
|
|
40 |
|
* HTML.pm.src (parse_char_stream): Make |set_next_char| |
41 |
|
invoke |manakai_read_until|, not only |read|, where |
42 |
|
possible, to decrease the number of |read| method calls. |
43 |
|
|
44 |
|
* mkhtmlparser.pl: Related changes to the aforementioned |
45 |
|
modification. |
46 |
|
|
47 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
48 |
|
|
49 |
|
* HTML.pm.src: Use |read| instead of |getc|. |set_inner_html| |
50 |
|
would report character error from now. |
51 |
|
|
52 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
53 |
|
|
54 |
|
* HTML.pm.src: White-space-leaded non-white-space character |
55 |
|
tokens in "before head insertion mode" was not |
56 |
|
correctly handled. |
57 |
|
(set_inner_html): Reimplemented using CharString decodehandle |
58 |
|
class. Support for $get_wrapper argument. Support |
59 |
|
for |{read_until}| feature. |
60 |
|
|
61 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
62 |
|
|
63 |
|
* HTML.pm.src: Make a "bare ero" error for unknown |
64 |
|
entities point the "&" character. |
65 |
|
|
66 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
67 |
|
|
68 |
|
* HTML.pm.src: It turns out that U+FFFD don't have to |
69 |
|
be added to the list of excluded characters. |
70 |
|
|
71 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
72 |
|
|
73 |
|
* HTML.pm.src ($char_onerror): Have character decoder's |line| |
74 |
|
and |column| a higher priority than the one set by the |
75 |
|
tokenizer's input handler. |
76 |
|
($self->{read_until}): Exclude U+FFFD (but this might |
77 |
|
not be necessary, since now we do line/column fixup in |
78 |
|
the character decode handle). |
79 |
|
|
80 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
81 |
|
|
82 |
|
* HTML.pm.src: Use |{read_until}| where possible. |
83 |
|
|
84 |
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
85 |
|
|
86 |
* HTML.pm.src: Change |{getc_until}| to |{read_until}| |
* HTML.pm.src: Change |{getc_until}| to |{read_until}| |