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