Commit graph

284 commits

Author SHA1 Message Date
6cac402375 Minor cleanup 2021-03-16 14:42:21 -04:00
ef2cb5a835 Don't emit errors if positions are not tracked 2021-03-16 13:35:08 -04:00
8131888634 Expose original document encoding 2021-03-16 11:27:53 -04:00
66d0699947 Don't pass the stack unnecessarily 2021-03-16 11:01:10 -04:00
2522059fa8 Fix object reference cycle 2021-03-16 10:52:37 -04:00
0392b816c0 Move integration point checking to tree builder 2021-03-15 13:04:11 -04:00
403432bad5 Consolidate tree constructor into single loop 2021-03-15 12:12:43 -04:00
55516faeea Remove last instance of recursive reprocessing 2021-03-15 10:26:18 -04:00
5895614c2c Remove more instances of recursive reprocessing 2021-03-14 23:38:35 -04:00
329a86b082 Use separate class for null character tokens 2021-03-14 17:56:06 -04:00
b4c50a1115 Fixed missed double emission in tokenizer 2021-03-14 16:26:19 -04:00
354f5acf0a Simplify tree construction slightly 2021-03-14 13:00:36 -04:00
ce127d0192 Fixed printing of document types 2021-03-14 11:52:32 -05:00
7f53465951 Fix remaining error positions 2021-03-13 21:00:59 -05:00
c6c51475cf Convert tokenizer to generator
Some error positions still need to be fixed
2021-03-13 18:03:15 -05:00
3111c88376 Optimize character consumption
Relies on pending changes to intl
2021-03-12 23:47:47 -05:00
dfac8ad4f1 Reduce calls to count() 2021-03-12 22:45:41 -05:00
8031648e03 Speed up the open elements stack 2021-03-12 09:49:30 -05:00
ad50037fff Speed up character consuming 2021-03-11 17:03:09 -05:00
104c89cc76 Small fix 2021-03-11 14:05:45 -05:00
be10fae2c1 Use userspace intl for coercion 2021-03-11 13:18:29 -05:00
3e294e47aa Fix up the rest of the error counts 2021-03-11 12:28:40 -05:00
2b01a33a85 Incorporate recent spec change 2021-03-11 10:32:34 -05:00
3f23040e1d Fix most parse error counts
More remain, though most have been addressed
2021-03-10 22:42:53 -05:00
bdddbeacd6 Fix adoption agency 2021-03-09 18:44:08 -05:00
d3a12f56cf Correct handling of h6 end tag 2021-03-09 13:33:29 -05:00
cd41770653 First pass at high-level API 2021-03-09 11:59:31 -05:00
210eac8f64 Optionally use PHPUnit 9 2021-03-08 19:27:26 -05:00
fd01acfa5c Partial fixes for adoption agency 2021-03-08 17:09:23 -05:00
f50c46952e Implement XML infoset coercion 2021-03-07 16:50:27 -05:00
5d9b1a3a68 Start on infoset coercison 2021-03-07 12:20:46 -05:00
2637d76639 Update dependencies for PHP 8 2021-03-06 23:14:20 -05:00
647665579a Add newer special elements 2021-03-06 22:04:33 -05:00
01361efdb8 Various fixes 2021-03-06 21:41:12 -05:00
3108808c10 Testmore MathML properly 2021-02-23 21:09:52 -05:00
c25e4eca41 Implement rest of insertion modes 2021-02-23 20:58:33 -05:00
179a21441c Select and template insertion modes 2021-02-23 17:30:45 -05:00
6bc95f8ccf Fix bug in stack with foreign content 2021-02-23 12:14:42 -05:00
0cb64ed689 Add more insertion modes
A bug remains which will require major re-organizaton of code to fix
2021-02-23 11:35:54 -05:00
68317d838e Fill in more insertion modes 2021-02-22 22:58:38 -05:00
fdb63ebedf Fix tokenizer bug 2021-02-22 22:58:18 -05:00
dc9dc9953a Partial adoption agency implementation 2021-02-22 10:38:19 -05:00
752ab05464 Implement rest of in-body insertion mode 2021-02-20 12:18:03 -05:00
0cfaced6b3 Fix CDATA tokenizer bugs 2021-02-20 09:09:38 -05:00
a8d2ee4174 Fill out more of the "in body" insertion mode
This only passes a few morectests because handling of end tags
is still mostly missing
2021-02-19 20:18:13 -05:00
baaa00e544 Implement a in body
Adoption agency will be handled later
2021-02-18 23:13:55 -05:00
9f19763cd0 Rewrite ative formatting reconstruction 2021-02-18 19:15:09 -05:00
400940af36 Fix pushing to the list of active formatting elements 2021-02-18 17:40:10 -05:00
9758c08da2 Various minor corrections 2021-02-18 11:24:28 -05:00
1228ecca17 Corrective pass over foreign content stuff 2021-02-18 10:30:49 -05:00