| 1 |
|
2008-04-06 Wakaba <wakaba@suika.fam.cx> |
| 2 |
|
|
| 3 |
|
* HTML.pm.src: Don't use local name stored in stack (i.e. ->[1]) |
| 4 |
|
for error reporting. (This is a preparation for using constant |
| 5 |
|
value for ->[1].) |
| 6 |
|
|
| 7 |
|
2008-03-22 Wakaba <wakaba@suika.fam.cx> |
| 8 |
|
|
| 9 |
|
* RDFXML.pm: Typo fixed. |
| 10 |
|
|
| 11 |
|
2008-03-22 Wakaba <wakaba@suika.fam.cx> |
| 12 |
|
|
| 13 |
|
* ContentChecker.pm: |fact_level| is now treated |
| 14 |
|
as same as |must_level|, i.e. level = |m|. |
| 15 |
|
(check_element): Make list of URIs in the DOM. |
| 16 |
|
|
| 17 |
|
2008-03-21 Wakaba <wakaba@suika.fam.cx> |
| 18 |
|
|
| 19 |
|
* RDFXML.pm: Language accessor implemented. |
| 20 |
|
Local (null-namespace) attribute support. |
| 21 |
|
|
| 22 |
|
2008-03-21 Wakaba <wakaba@suika.fam.cx> |
| 23 |
|
|
| 24 |
|
* RDFXML.pm: Factored out ID checking code. |
| 25 |
|
|
| 26 |
|
2008-03-21 Wakaba <wakaba@suika.fam.cx> |
| 27 |
|
|
| 28 |
|
* RDFXML.pm: TODO items noted. Validation of ID |
| 29 |
|
and URI attributes is implemented. Warn if unknown |
| 30 |
|
value is used in rdf:parseType="" attribute. |
| 31 |
|
|
| 32 |
|
* URIChecker.pm (check_rdf_uri_reference): New function. |
| 33 |
|
|
| 34 |
|
2008-03-21 Wakaba <wakaba@suika.fam.cx> |
| 35 |
|
|
| 36 |
|
* RDFXML.pm: bnodeid implemented. Relative references |
| 37 |
|
are now resolved. |
| 38 |
|
|
| 39 |
|
2008-03-21 Wakaba <wakaba@suika.fam.cx> |
| 40 |
|
|
| 41 |
|
* ContentChecker.pm: RDF reification implemented. |
| 42 |
|
|
| 43 |
|
* RDFXML.pm: undef vs false bug fixed. |
| 44 |
|
Reification implemented. |
| 45 |
|
|
| 46 |
|
2008-03-21 Wakaba <wakaba@suika.fam.cx> |
| 47 |
|
|
| 48 |
|
* RDFXML.pm: s/id/ID/ for attribute name. |
| 49 |
|
The |node| arguments are added for |ontriple| calls. |
| 50 |
|
Too many "attribute not allowed" errors were raised. |
| 51 |
|
|
| 52 |
|
* ContentChecker.pm: Initial experimental support for rdf:RDF |
| 53 |
|
element. |
| 54 |
|
|
| 55 |
|
2008-03-21 Wakaba <wakaba@suika.fam.cx> |
| 56 |
|
|
| 57 |
|
* RDFXML.pm: New module. |
| 58 |
|
|
| 59 |
|
2008-03-20 Wakaba <wakaba@suika.fam.cx> |
| 60 |
|
|
| 61 |
|
* HTML.pm.src (set_inner_html): Line/column number |
| 62 |
|
code was old one yet. |
| 63 |
|
|
| 64 |
|
2008-03-20 Wakaba <wakaba@suika.fam.cx> |
| 65 |
|
|
| 66 |
|
* HTML.pm.src: Better line/column reporting for "duplicate attribute" |
| 67 |
|
errors. Line/column markings for DOCTYPE, comment, and |
| 68 |
|
character tokens are reintroduced; otherwise, |
| 69 |
|
error location for "not HTML5" error and errors |
| 70 |
|
for implied elements are not attached. |
| 71 |
|
|
| 72 |
|
2008-03-20 Wakaba <wakaba@suika.fam.cx> |
| 73 |
|
|
| 74 |
|
* HTML.pm.src: Set line/column numbers to attributes. |
| 75 |
|
|
| 76 |
|
* NanoDOM.pm (create_attribute_ns, set_attribute_node_ns): Added. |
| 77 |
|
(value): Setter implemented. |
| 78 |
|
|
| 79 |
|
* mkhtmlparser.pl: Set line/column numbers to Attr nodes. |
| 80 |
|
|
| 81 |
|
2008-03-20 Wakaba <wakaba@suika.fam.cx> |
| 82 |
|
|
| 83 |
|
* HTML.pm.src: Unused line/column markings are removed. |
| 84 |
|
|
| 85 |
|
2008-03-20 Wakaba <wakaba@suika.fam.cx> |
| 86 |
|
|
| 87 |
|
* HTML.pm.src (_get_next_token): Remove |first_start_tag| |
| 88 |
|
flag, which is no longer used. |
| 89 |
|
|
| 90 |
|
2008-03-17 Wakaba <wakaba@suika.fam.cx> |
| 91 |
|
|
| 92 |
|
* HTML.pm.src: Set line/column information to element nodes. |
| 93 |
|
|
| 94 |
|
* mkhtmlparser.pl (!!!create-element, !!!insert-element, |
| 95 |
|
and !!!insert-element-t): Set line/column information to |
| 96 |
|
element nodes. |
| 97 |
|
|
| 98 |
|
2008-03-17 Wakaba <wakaba@suika.fam.cx> |
| 99 |
|
|
| 100 |
|
* HTML.pm.src (_get_next_token): The first "<" character |
| 101 |
|
in "<?", "<>", or "</>" should be the error point. |
| 102 |
|
|
| 103 |
|
2008-03-16 Wakaba <wakaba@suika.fam.cx> |
| 104 |
|
|
| 105 |
|
* HTML.pm.src: Some more fixes on error position reporting. |
| 106 |
|
|
| 107 |
|
2008-03-16 Wakaba <wakaba@suika.fam.cx> |
| 108 |
|
|
| 109 |
|
* HTML.pm.src: Token-level precious error reporting. |
| 110 |
|
|
| 111 |
|
2008-03-16 Wakaba <wakaba@suika.fam.cx> |
| 112 |
|
|
| 113 |
|
* HTML.pm.src: Preparation for more precious error point |
| 114 |
|
reporting. |
| 115 |
|
|
| 116 |
|
2008-03-11 Wakaba <wakaba@suika.fam.cx> |
| 117 |
|
|
| 118 |
|
* HTML.pm.src: Error type revised. |
| 119 |
|
|
| 120 |
|
2008-03-11 Wakaba <wakaba@suika.fam.cx> |
| 121 |
|
|
| 122 |
|
* HTML.pm.src: Similar codes are merged together, again. |
| 123 |
|
|
| 124 |
|
2008-03-11 Wakaba <wakaba@suika.fam.cx> |
| 125 |
|
|
| 126 |
|
* HTML.pm.src: Similar codes are merged together. |
| 127 |
|
|
| 128 |
|
2008-03-10 Wakaba <wakaba@suika.fam.cx> |
| 129 |
|
|
| 130 |
|
* mkhtmlparser.pl: Set "level" parameter to parse errors. |
| 131 |
|
|
| 132 |
|
* HTML.pm.src: Code refined. |
| 133 |
|
|
| 134 |
|
2008-03-09 Wakaba <wakaba@suika.fam.cx> |
| 135 |
|
|
| 136 |
|
* HTML.pm.src: |</body>| treatement has been changed (HTML5 |
| 137 |
|
revision 1348). Note that I really don't know this makes |
| 138 |
|
any difference in the black-box behavior of the parser. |
| 139 |
|
|
| 140 |
|
2008-03-09 Wakaba <wakaba@suika.fam.cx> |
| 141 |
|
|
| 142 |
|
* HTML.pm.src: New end-of-file token implementation (HTML5 |
| 143 |
|
revision 1348). |
| 144 |
|
|
| 145 |
|
2008-03-09 Wakaba <wakaba@suika.fam.cx> |
| 146 |
|
|
| 147 |
|
* HTML.pm.src: |applet| support (HTML5 revision 1347). |
| 148 |
|
|
| 149 |
|
2008-03-09 Wakaba <wakaba@suika.fam.cx> |
| 150 |
|
|
| 151 |
|
* HTML.pm.src: Foster parenting in AAA (HTML5 revision 1343). |
| 152 |
|
|
| 153 |
|
2008-03-09 Wakaba <wakaba@suika.fam.cx> |
| 154 |
|
|
| 155 |
|
* HTML.pm.src: Support for |<input>| in the "in select" insertion |
| 156 |
|
mode and support for the "in select in table" insertion mode (HTML5 |
| 157 |
|
revision 1342). |
| 158 |
|
|
| 159 |
|
2008-03-09 Wakaba <wakaba@suika.fam.cx> |
| 160 |
|
|
| 161 |
|
* HTML.pm.src: No foster parenting for <script> and <script> |
| 162 |
|
in non-tainted <table>s (HTML5 revision 1336). |
| 163 |
|
|
| 164 |
|
2008-03-09 Wakaba <wakaba@suika.fam.cx> |
| 165 |
|
|
| 166 |
|
* HTML.pm.src: Ignore white space characters between <html> |
| 167 |
|
and <head> (HTML5 revision 1332). |
| 168 |
|
|
| 169 |
|
2008-03-09 Wakaba <wakaba@suika.fam.cx> |
| 170 |
|
|
| 171 |
|
* HTML.pm.src: Treat <input type=hidden> as if it were a |
| 172 |
|
white space (HTML5 revision 1331). |
| 173 |
|
|
| 174 |
|
2008-03-08 Wakaba <wakaba@suika.fam.cx> |
| 175 |
|
|
| 176 |
|
* HTML.pm.src: Ignore U+000A at the beginning of a |listing| |
| 177 |
|
element (HTML5 revision 1330). |
| 178 |
|
|
| 179 |
|
2008-03-08 Wakaba <wakaba@suika.fam.cx> |
| 180 |
|
|
| 181 |
|
* HTML.pm.src: <title> is always appended to the current |
| 182 |
|
element (HTML5 revision 1328). |
| 183 |
|
|
| 184 |
|
2008-03-08 Wakaba <wakaba@suika.fam.cx> |
| 185 |
|
|
| 186 |
|
* HTML.pm.src: White space in tainted tables are moved |
| 187 |
|
into foster parents (HTML5 revision 1326). |
| 188 |
|
|
| 189 |
|
2008-03-08 Wakaba <wakaba@suika.fam.cx> |
| 190 |
|
|
| 191 |
|
* HTML.pm.src: Reduce errors from foster parenting cases (HTML5 |
| 192 |
|
revision 1321). |
| 193 |
|
|
| 194 |
|
2008-03-08 Wakaba <wakaba@suika.fam.cx> |
| 195 |
|
|
| 196 |
|
* HTML.pm.src: |</h/n/>| case code rearranged to align with |
| 197 |
|
the spec (HTML5 revision 1320). Note that we finally complete |
| 198 |
|
all of HTML5 revision 1320 changes. |
| 199 |
|
|
| 200 |
|
2008-03-08 Wakaba <wakaba@suika.fam.cx> |
| 201 |
|
|
| 202 |
|
* HTML.pm.src: |</form>| now works similar to |</div>| for unclosed |
| 203 |
|
tags (HTML5 revision 1320). |
| 204 |
|
|
| 205 |
|
2008-03-08 Wakaba <wakaba@suika.fam.cx> |
| 206 |
|
|
| 207 |
|
* HTML.pm.src: |</p>| case rearranged with no actual change in fact. |
| 208 |
|
|
| 209 |
|
2008-03-08 Wakaba <wakaba@suika.fam.cx> |
| 210 |
|
|
| 211 |
|
* HTML.pm.src: A "generate implied end tags" code (t409.1) |
| 212 |
|
could not be reached so that it is now removed (HTML5 revision |
| 213 |
|
1320). |
| 214 |
|
|
| 215 |
|
2008-03-08 Wakaba <wakaba@suika.fam.cx> |
| 216 |
|
|
| 217 |
|
* HTML.pm.src: Code for the case of |</div>| and so on are revised |
| 218 |
|
to align with new spec text (HTML5 revision 1320). |
| 219 |
|
|
| 220 |
|
2008-03-08 Wakaba <wakaba@suika.fam.cx> |
| 221 |
|
|
| 222 |
|
* HTML.pm.src: Remove strange |if| condition; however, it should |
| 223 |
|
have had no harm in theory. |
| 224 |
|
|
| 225 |
|
2008-03-08 Wakaba <wakaba@suika.fam.cx> |
| 226 |
|
|
| 227 |
|
* HTML.pm.src (_tree_construction_main): '</p>' in body |
| 228 |
|
case is split from other end tags for the preparation |
| 229 |
|
of implementing HTML revision 1320. |
| 230 |
|
|
| 231 |
|
2008-03-07 Wakaba <wakaba@suika.fam.cx> |
| 232 |
|
|
| 233 |
|
* HTML.pm.src: Simplified "generate implied end tag" (HTML5 |
| 234 |
|
revision 1320). |
| 235 |
|
|
| 236 |
|
2008-03-07 Wakaba <wakaba@suika.fam.cx> |
| 237 |
|
|
| 238 |
|
* HTML.pm.src (_tree_construction_main): Merge rules for "h1" |
| 239 |
|
and "div" (HTML5 revision 1318). Add comments to where |
| 240 |
|
|form| pointer association codes should be inserted (HTML5 revision |
| 241 |
|
1319). |
| 242 |
|
|
| 243 |
|
2008-03-06 Wakaba <wakaba@suika.fam.cx> |
| 244 |
|
|
| 245 |
|
* HTML.pm.src: <html> treatement refined (HTML5 revision 1314). |
| 246 |
|
|
| 247 |
|
2008-03-05 Wakaba <wakaba@suika.fam.cx> |
| 248 |
|
|
| 249 |
|
* HTML.pm.src: Since the case t268 should never be reached (no |
| 250 |
|
other token type, there are), it is replaced by a |die| statement. |
| 251 |
|
|
| 252 |
|
2008-03-05 Wakaba <wakaba@suika.fam.cx> |
| 253 |
|
|
| 254 |
|
* HTML.pm.src: Typo fixed. |
| 255 |
|
|
| 256 |
|
2008-03-04 Wakaba <wakaba@suika.fam.cx> |
| 257 |
|
|
| 258 |
|
* HTML.pm.src (_tree_construction_initial): Some limited quirks |
| 259 |
|
doctypes were not uppercased for comparison. |
| 260 |
|
|
| 261 |
|
2008-03-03 Wakaba <wakaba@suika.fam.cx> |
| 262 |
|
|
| 263 |
|
* HTML.pm.src (tree construction and set_inner_html): Checkpoints |
| 264 |
|
are added. |
| 265 |
|
|
| 266 |
|
2008-03-03 Wakaba <wakaba@suika.fam.cx> |
| 267 |
|
|
| 268 |
|
* HTML.pm.src (_tokenize_attempt_to_consume_an_entity): Checkpoints |
| 269 |
|
are set. Cases that are unlikely reached are noted as so. |
| 270 |
|
|
| 271 |
|
2008-03-03 Wakaba <wakaba@suika.fam.cx> |
| 272 |
|
|
| 273 |
|
* HTML.pm.src: Checkpoints for debugging are added. |
| 274 |
|
|
| 275 |
|
* mkhtmlparser.pl: Support for |!!!cp| syntax. |
| 276 |
|
|
| 277 |
|
2008-03-03 Wakaba <wakaba@suika.fam.cx> |
| 278 |
|
|
| 279 |
|
* HTML.pm.src, mkhtmlparser.pl: s/_input_character/_char/g |
| 280 |
|
for simplicity. |
| 281 |
|
|
| 282 |
|
2008-03-03 Wakaba <wakaba@suika.fam.cx> |
| 283 |
|
|
| 284 |
|
* HTML.pm.src: Flag name changed: s/correct/force-quirks/g (HTML5 |
| 285 |
|
revision 1307). |
| 286 |
|
|
| 287 |
|
2008-03-03 Wakaba <wakaba@suika.fam.cx> |
| 288 |
|
|
| 289 |
|
* HTML.pm.src (_get_next_token): Where the /incorrect/ flag |
| 290 |
|
is set are changed (HTML5 revision 1305). |
| 291 |
|
|
| 292 |
|
2008-03-02 Wakaba <wakaba@suika.fam.cx> |
| 293 |
|
|
| 294 |
|
* HTML.pm.src: Raise a parse error for |<span ===>| (HTML5 revision |
| 295 |
|
1292). Entities are not parsed in comment-like part in RCDATA |
| 296 |
|
elements (HTML5 revision 1294). Allow bare & at the end |
| 297 |
|
of attribute value literals (HTML5 revision 1296). More |
| 298 |
|
quirks mode doctypes (HTML5 revision 1302). Requires spaces |
| 299 |
|
between attributes and ban attribute names or unquoted |
| 300 |
|
attribute values containing single or double quotes (HTML5 |
| 301 |
|
revision 1303). |
| 302 |
|
|
| 303 |
|
2008-03-02 Wakaba <wakaba@suika.fam.cx> |
| 304 |
|
|
| 305 |
|
* ContentChecker.pm: Typo fixed. Don't raise "character encoding" |
| 306 |
|
and related errors unless it is an HTML document (though the spec |
| 307 |
|
is unclear on whether it is applied to XHTML document). |
| 308 |
|
|
| 309 |
|
* HTML.pm (%HTMLAttrStatus): WF2 repetition model attributes |
| 310 |
|
are added. |
| 311 |
|
|
| 312 |
|
2008-03-02 Wakaba <wakaba@suika.fam.cx> |
| 313 |
|
|
| 314 |
|
* HTML.pm.src: s/local_name/manakai_local_name/g. |
| 315 |
|
|
| 316 |
|
2008-03-01 Wakaba <wakaba@suika.fam.cx> |
| 317 |
|
|
| 318 |
|
* _NamedEntityList.pm: Updated (HTML5 revision 1286). |
| 319 |
|
|
| 320 |
|
* HTML.pm.src: |charset| in |content| attribute is |
| 321 |
|
case-insensitive (HTML5 revision 1270). |
| 322 |
|
|
| 323 |
|
2008-02-26 Wakaba <wakaba@suika.fam.cx> |
| 324 |
|
|
| 325 |
|
* ContentChecker.pm: New status constants are added. |
| 326 |
|
($ElementDefault): |status| added. |
| 327 |
|
(check_element): Err for non-standard or deprecated elements. |
| 328 |
|
(_attr_status_info): For non-standard or deprecated attributes. |
| 329 |
|
|
| 330 |
|
2008-02-24 Wakaba <wakaba@suika.fam.cx> |
| 331 |
|
|
| 332 |
|
* ContentChecker.pm (_attr_status_info): New internal method. |
| 333 |
|
|
| 334 |
|
2008-02-24 Wakaba <wakaba@suika.fam.cx> |
| 335 |
|
|
| 336 |
|
* ContentChecker.pm (check_element): Element standardized |
| 337 |
|
status information is now dispatched. |
| 338 |
|
|
| 339 |
|
2008-02-24 Wakaba <wakaba@suika.fam.cx> |
| 340 |
|
|
| 341 |
|
* ContentChecker.pm (check_element): Fix |del|-and-significant |
| 342 |
|
problem by adding some more arguments. |
| 343 |
|
|
| 344 |
|
2008-02-24 Wakaba <wakaba@suika.fam.cx> |
| 345 |
|
|
| 346 |
|
* ContentChecker.pm (check_element): Use context of |
| 347 |
|
container-for-the-purpose-of-content-model element (not transparent |
| 348 |
|
element) for |check_child_element| calling and significant |
| 349 |
|
text flag marking. This reintroduces |<del>|-and-significant |
| 350 |
|
problem again. |
| 351 |
|
|
| 352 |
|
2008-02-24 Wakaba <wakaba@suika.fam.cx> |
| 353 |
|
|
| 354 |
|
* ContentChecker.pm (check_element): Make semi-transparent |
| 355 |
|
elements ignored for the purpose of phase changes in |
| 356 |
|
content model checking. |
| 357 |
|
|
| 358 |
|
2008-02-23 Wakaba <wakaba@suika.fam.cx> |
| 359 |
|
|
| 360 |
|
* ContentChecker.pm (check_element): In-element state |
| 361 |
|
was not properly managed for transparent cases. |
| 362 |
|
|
| 363 |
|
2008-02-23 Wakaba <wakaba@suika.fam.cx> |
| 364 |
|
|
| 365 |
|
* ContentChecker.pm (check_element): Support for |video| |
| 366 |
|
and |audio| as semi-transparent elements. |
| 367 |
|
|
| 368 |
|
2008-02-23 Wakaba <wakaba@suika.fam.cx> |
| 369 |
|
|
| 370 |
|
* ContentChecker.pm ($HTMLSemiTransparentElements): New. |
| 371 |
|
(check_element): s/minuses/minus_elements/, s/pluses/plus_elements/. |
| 372 |
|
Support for |html:object| as a semi-transparent element. |
| 373 |
|
|
| 374 |
|
2008-02-23 Wakaba <wakaba@suika.fam.cx> |
| 375 |
|
|
| 376 |
|
* ContentChecker.pm (check_element): The way to traverse |
| 377 |
|
the tree is entirely revised to make it easier to track |
| 378 |
|
the state of ancestors/descendants. As a result of this |
| 379 |
|
revision (which rewrites almost all of Whatpm::ContentChecker::HTML), |
| 380 |
|
support for content model checking for HTML elements |figure|, |
| 381 |
|
|object|, |video|, and |audio| and checking for XML elements (and |
| 382 |
|
some XMLNS checkings) are dropped for now. They will be |
| 383 |
|
reimplemented in due cource. |
| 384 |
|
|
| 385 |
|
2008-02-17 Wakaba <wakaba@suika.fam.cx> |
| 386 |
|
|
| 387 |
|
* HTML.pm.src: |>| in public or system literal closes the DOCTYPE |
| 388 |
|
token (HTML5 revision 1225). |
| 389 |
|
|
| 390 |
|
2008-02-17 Wakaba <wakaba@suika.fam.cx> |
| 391 |
|
|
| 392 |
|
* ContentChecker.pm ({unsupported_level}): New value. |
| 393 |
|
|
| 394 |
|
* HTML.pm.src: Save whether |meta| |content| attribute |
| 395 |
|
contains character references or not. |
| 396 |
|
|
| 397 |
2008-02-17 Wakaba <wakaba@suika.fam.cx> |
2008-02-17 Wakaba <wakaba@suika.fam.cx> |
| 398 |
|
|
| 399 |
* ContentChecker.pm (_get_children): (Incompleted) attempt to |
* ContentChecker.pm (_get_children): (Incompleted) attempt to |