Commit 93996ba
committed
Squashed commit of the following:
commit 19bea7f
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Jan 31 10:26:06 2024 +0100
Revert "Use $p variable for processor like other tests"
This reverts commit 0deab0a.
commit 31d71de
Author: Dennis Snell <dennis.snell@automattic.com>
Date: Tue Jan 30 15:34:23 2024 -0700
Ensure void and self-closing elements pop from stack when advancing.
Previously, the logic to pop void and self-closing elements from the
stack of open elements only ran when stepping into the next node in
a document. With the introduction of `next_token()` there appeared a
new way to reprocesses the current token, so this logic would be skipped
when calling `next_token()` _into_ a void or self-closing element,
leaving it on the stack.
In this patch the logic runs whenever the processor is not reprocessing
the current token. A new class constant communicates that `step()`
should treat the current token as if it arrived there itself, that is,
to process it with the normal rules but without advancing the parser.
commit 7890b53
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Tue Jan 30 16:55:03 2024 +0100
Update ticket
commit e0668b6
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Tue Jan 30 16:51:02 2024 +0100
Add failing test
commit 0deab0a
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Tue Jan 30 15:53:48 2024 +0100
Use $p variable for processor like other tests
1 parent e053a62 commit 93996ba
2 files changed
Lines changed: 66 additions & 2 deletions
File tree
- src/wp-includes/html-api
- tests/phpunit/tests/html-api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
| 434 | + | |
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
| 516 | + | |
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| 535 | + | |
535 | 536 | | |
| 537 | + | |
536 | 538 | | |
537 | 539 | | |
538 | 540 | | |
| |||
1781 | 1783 | | |
1782 | 1784 | | |
1783 | 1785 | | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
1784 | 1795 | | |
1785 | 1796 | | |
1786 | 1797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
191 | 244 | | |
192 | 245 | | |
193 | 246 | | |
| |||
0 commit comments