1 |
|
2008-09-16 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* WebIDL.pm: Checker's error types are redefined. |
4 |
|
|
5 |
|
2008-09-16 Wakaba <wakaba@suika.fam.cx> |
6 |
|
|
7 |
|
* WebIDL.pm: Parser's error types are redefined. Some forward |
8 |
|
compatible parsing bugs are fixed. Some unreachable codes are |
9 |
|
commented out. |
10 |
|
|
11 |
|
2008-09-16 Wakaba <wakaba@suika.fam.cx> |
12 |
|
|
13 |
|
* WebIDL.pm: Support for the reminding extended attributes are |
14 |
|
added. It does not satisfy the definition that a forward |
15 |
|
interface declaration has an extended attribute. It seems that |
16 |
|
unless explicitly allowed multiple extended attributes with the |
17 |
|
same name is not allowed, though it is not explicitly mentioned in |
18 |
|
the spec. |
19 |
|
|
20 |
|
2008-09-16 Wakaba <wakaba@suika.fam.cx> |
21 |
|
|
22 |
|
* WebIDL.pm: Unescapes extended attribute names and extended |
23 |
|
attribute identifiers. Preserve whether an extended attribute has |
24 |
|
an argument list of not. Support for extended attributes: |
25 |
|
Constructor, ExceptionConsts, IndexGetter, IndexSetter, |
26 |
|
NameGetter, NameSetter, and Null. |
27 |
|
(has_argument_list): New attribute. |
28 |
|
(idl_text): Stringifies argument lists, if any, even if it is |
29 |
|
empty. |
30 |
|
|
31 |
|
2008-09-15 Wakaba <wakaba@suika.fam.cx> |
32 |
|
|
33 |
|
* HTML.pm.src: New state |PCDATA_STATE|. Use an empty string for |
34 |
|
|{s_kwd}| in DATA_STATE as default. |
35 |
|
|
36 |
|
2008-09-15 Wakaba <wakaba@suika.fam.cx> |
37 |
|
|
38 |
|
* HTML.pm.src, mkhtmlparser.pl: Replace |{prev_char}| |
39 |
|
by |{s_kwd}| in DATA_STATE. |
40 |
|
|
41 |
|
2008-09-15 Wakaba <wakaba@suika.fam.cx> |
42 |
|
|
43 |
|
* HTML.pm.src: Shorten keys. |
44 |
|
|
45 |
|
2008-09-15 Wakaba <wakaba@suika.fam.cx> |
46 |
|
|
47 |
|
* HTML.pm.src: Remove checking for control character, surrogate |
48 |
|
pair, or noncharacter code points and non-Unicode code |
49 |
|
points (they should be handled by Whatpm::Charset::UnicodeChecker). |
50 |
|
(parse_char_stream): Support for the |$get_wrapper| argument and |
51 |
|
character stream error handlers. |
52 |
|
|
53 |
|
2008-09-15 Wakaba <wakaba@suika.fam.cx> |
54 |
|
|
55 |
|
* ContentChecker.pm: Don't call |loda_ns_module| |
56 |
|
for null-namespace elements/attributes. |
57 |
|
|
58 |
|
* HTML.pm.src: Fact out $disallowed_control_chars |
59 |
|
as a hash. |
60 |
|
|
61 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
62 |
|
|
63 |
|
* HTML.pm.src: Regexp typo fixed. |{prev_char}| |
64 |
|
and |{next_char}| initializations are moved to initialization |
65 |
|
method. |{read_until}| now supports buffering. Sync |set_inner_html| |
66 |
|
with |parse_char_stream|. |
67 |
|
|
68 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
69 |
|
|
70 |
|
* HTML.pm.src (parse_char_stream): Make |set_next_char| |
71 |
|
invoke |manakai_read_until|, not only |read|, where |
72 |
|
possible, to decrease the number of |read| method calls. |
73 |
|
|
74 |
|
* mkhtmlparser.pl: Related changes to the aforementioned |
75 |
|
modification. |
76 |
|
|
77 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
78 |
|
|
79 |
|
* HTML.pm.src: Use |read| instead of |getc|. |set_inner_html| |
80 |
|
would report character error from now. |
81 |
|
|
82 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
83 |
|
|
84 |
|
* HTML.pm.src: White-space-leaded non-white-space character |
85 |
|
tokens in "before head insertion mode" was not |
86 |
|
correctly handled. |
87 |
|
(set_inner_html): Reimplemented using CharString decodehandle |
88 |
|
class. Support for $get_wrapper argument. Support |
89 |
|
for |{read_until}| feature. |
90 |
|
|
91 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
92 |
|
|
93 |
|
* HTML.pm.src: Make a "bare ero" error for unknown |
94 |
|
entities point the "&" character. |
95 |
|
|
96 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
97 |
|
|
98 |
|
* HTML.pm.src: It turns out that U+FFFD don't have to |
99 |
|
be added to the list of excluded characters. |
100 |
|
|
101 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
102 |
|
|
103 |
|
* HTML.pm.src ($char_onerror): Have character decoder's |line| |
104 |
|
and |column| a higher priority than the one set by the |
105 |
|
tokenizer's input handler. |
106 |
|
($self->{read_until}): Exclude U+FFFD (but this might |
107 |
|
not be necessary, since now we do line/column fixup in |
108 |
|
the character decode handle). |
109 |
|
|
110 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
111 |
|
|
112 |
|
* HTML.pm.src: Use |{read_until}| where possible. |
113 |
|
|
114 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
115 |
|
|
116 |
|
* HTML.pm.src: Change |{getc_until}| to |{read_until}| |
117 |
|
and |manakai_getc_until| to |manakai_read_until| to |
118 |
|
reduce the number of string copies. |
119 |
|
|
120 |
|
2008-09-14 Wakaba <wakaba@suika.fam.cx> |
121 |
|
|
122 |
|
* HTML.pm.src (parse_char_string): Use newly created |
123 |
|
|Whatpm::Charset::DecodeHandle::CharString| instead of Perl's |
124 |
|
standard feature to |open| a string as a filehandle, |
125 |
|
since Perl's string filehandle seems not supporting |ungetc| |
126 |
|
method correctly. |
127 |
|
(parse_char_stream): Define |{getc_until}| method. |
128 |
|
(DATA_STATE): Experimental support for |getc_until| feature. |
129 |
|
|
130 |
|
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
131 |
|
|
132 |
|
* HTML.pm.src: Check points added to newly added branches. |
133 |
|
|
134 |
|
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
135 |
|
|
136 |
|
* HTML.pm.src: Remove |{char}|, which is no longer used. |
137 |
|
Remove |{entity_in_attr}| and |{last_attribute_value_state}| |
138 |
|
and replaced by |{prev_state}|. |
139 |
|
|
140 |
|
* mkhtmlparser.pl: Remove |{char}| feature. |
141 |
|
Remove |!!!back-next-input-character;| macro. |
142 |
|
|
143 |
|
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
144 |
|
|
145 |
|
* HTML.pm.src: Finally we get rid of all the inner loops. Remove |
146 |
|
entity related tokenizer states in favor of new states |
147 |
|
implementing the consume character reference algorithm. |
148 |
|
|
149 |
|
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
150 |
|
|
151 |
|
* HTML.pm.src: "Consume a character reference" algorithm is |
152 |
|
now implemented as a tokenizer's state, rather than |
153 |
|
a method, with minimum changes (more changes will |
154 |
|
be made, in due course). "Bogus comment state"'s inner |
155 |
|
loop gets removed. |
156 |
|
|
157 |
|
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
158 |
|
|
159 |
|
* HTML.pm.src: Make |PUBLIC| and |SYSTEM| keyword tokenizing |
160 |
|
into their own tokenizer states. |
161 |
|
|
162 |
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
2008-09-13 Wakaba <wakaba@suika.fam.cx> |
163 |
|
|
164 |
* HTML.pm.src: |CDATA_SECTION_STATE| (formally |CDATA_BLOCK_STATE| |
* HTML.pm.src: |CDATA_SECTION_STATE| (formally |CDATA_BLOCK_STATE| |