Repository navigation
Commit 69f6931
fix(parser): process unmatched foreign end tags at the root of a fragment
The foreign-content end-tag walk stopped before the root `html` element, so in a fragment whose stack is `html, <foreign>…` an unmatched end tag was dropped instead of being processed with the HTML rules (`</form>` did not reset the form element pointer). The loop bound now includes the root.
The test parses such a fragment.
Co-Authored-By: Claude Fable 5.1 <[email protected]>1 parent b9093da commit 69f6931
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
96 | 104 | | |
97 | 105 | | |
98 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3804 | 3804 | | |
3805 | 3805 | | |
3806 | 3806 | | |
3807 | | - | |
| 3807 | + | |
| 3808 | + | |
| 3809 | + | |
| 3810 | + | |
3808 | 3811 | | |
3809 | 3812 | | |
3810 | 3813 | | |
| |||
0 commit comments