Commit 68ee040
Add missing errors
These are tricky. A `<math>` tag as the first token in a document
fragment whose context node is `td` (or `th`, but this isn't tested
here) is fine. One in a document fragment whose context node is `tr`,
`thead`, `tbody`, or `tfoot` is a parse error and the elements are
foster parented.
The table element start tags after the `<mo>` tag are parsed as html and
there are no `tr` (for `tr` elements) elements or `thead`, `tbody`, or
`tfoot` (for the others) elements in table scope which is a parse error.
I just invented some sames for those.
The `</table>` tag after the `<mo>` is parsed as foreign but it doesn't
match `<mo>` so it's a parse error.
Finally, the EOF occurs while a bunch of elements are open which is a
parse error.1 parent 6da5583 commit 68ee040
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
36 | 47 | | |
37 | 48 | | |
38 | 49 | | |
| |||
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
46 | 60 | | |
47 | 61 | | |
48 | 62 | | |
| |||
53 | 67 | | |
54 | 68 | | |
55 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
56 | 73 | | |
57 | 74 | | |
58 | 75 | | |
| |||
63 | 80 | | |
64 | 81 | | |
65 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
66 | 86 | | |
67 | 87 | | |
68 | 88 | | |
| |||
73 | 93 | | |
74 | 94 | | |
75 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
76 | 99 | | |
77 | 100 | | |
78 | 101 | | |
| |||
0 commit comments