Commit 42f3df4
committed
Squash merge #7649
Squashed commit of the following:
commit 1cde425
Merge: 05ca2a4 8ad5281
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 20:40:05 2024 +0100
Merge branch 'trunk' into html-api/fix-63390-seek
commit 05ca2a4
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 20:29:36 2024 +0100
Remove context-node cases from open elements
The context node is not pushed to the stack of open elements, and
therefore does not need special handling.
commit 75ab9c2
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 20:27:57 2024 +0100
Break at root-node when popping elements on seek
The context node is not pushed to the stack of open elements,
this code was either doing nothing or incorrect.
commit 90eb6e2
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 13:53:15 2024 +0100
Use a temporary bookmark to avoid modifying tag processor internal state
commit b95e402
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 13:45:13 2024 +0100
Restore private stack properties to private
commit d5a7d5c
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 13:40:18 2024 +0100
Rework with tests for fragment and full processors
Use a dataprovider to get a factory function for processors
commit f7af6e3
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 13:19:58 2024 +0100
Add test seeking from SVG namespace
commit 388bf19
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 13:05:34 2024 +0100
Add and improve HTML processor bookmark tests
commit d5bf14c
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 12:17:47 2024 +0100
Add and improve comments
commit d181938
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 12:13:48 2024 +0100
Fix fragment state reset for different context nodes
commit 9a0c017
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 12:05:43 2024 +0100
Set parsing namespace correctly when seeking
commit 660dc85
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 11:49:21 2024 +0100
Remove condition that may not be necessary
This seems related to virutal tokens and it likely covered by the virtual token condition
commit 9af204c
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 11:47:56 2024 +0100
Assert setting bookmark two
This is consisten with the assertion on bookmark one
commit 851df38
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 11:47:17 2024 +0100
Fix fragment parser bug that should reset breadcrumbs before seeking
commit 6106a56
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 11:46:49 2024 +0100
Use do-while loop to iterate after first check
commit 744cf01
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Wed Nov 6 11:42:42 2024 +0100
Add commentary around state resetting in seek
commit cb63bbc
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Tue Nov 5 19:51:29 2024 +0100
Lint: remove empty line
commit 737bf92
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Tue Nov 5 19:49:01 2024 +0100
Restore original bookmark matching
commit 89aa01b
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Tue Nov 5 19:47:16 2024 +0100
Fix the issue
commit dc3f1e6
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Tue Nov 5 19:06:23 2024 +0100
try fixes
commit 541b4f6
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Fri Oct 25 23:19:19 2024 +0200
wip
commit 5d75bb7
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Fri Oct 25 23:15:51 2024 +0200
Work on fix
commit f9777aa
Author: Jon Surrell <sirreal@users.noreply.github.com>
Date: Fri Oct 25 22:51:44 2024 +0200
Add failing test case1 parent 0789538 commit 42f3df4
4 files changed
Lines changed: 201 additions & 35 deletions
File tree
- src/wp-includes/html-api
- tests/phpunit/tests/html-api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | 523 | | |
529 | 524 | | |
530 | 525 | | |
| |||
585 | 580 | | |
586 | 581 | | |
587 | 582 | | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | 583 | | |
593 | 584 | | |
594 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5409 | 5409 | | |
5410 | 5410 | | |
5411 | 5411 | | |
5412 | | - | |
5413 | | - | |
| 5412 | + | |
5414 | 5413 | | |
5415 | 5414 | | |
5416 | | - | |
| 5415 | + | |
| 5416 | + | |
| 5417 | + | |
| 5418 | + | |
| 5419 | + | |
5417 | 5420 | | |
5418 | 5421 | | |
5419 | 5422 | | |
5420 | 5423 | | |
5421 | 5424 | | |
5422 | 5425 | | |
5423 | 5426 | | |
5424 | | - | |
5425 | | - | |
5426 | | - | |
5427 | | - | |
5428 | 5427 | | |
5429 | 5428 | | |
5430 | 5429 | | |
5431 | | - | |
5432 | | - | |
5433 | | - | |
5434 | | - | |
5435 | | - | |
| 5430 | + | |
| 5431 | + | |
| 5432 | + | |
| 5433 | + | |
| 5434 | + | |
| 5435 | + | |
| 5436 | + | |
| 5437 | + | |
| 5438 | + | |
| 5439 | + | |
| 5440 | + | |
| 5441 | + | |
| 5442 | + | |
| 5443 | + | |
| 5444 | + | |
| 5445 | + | |
| 5446 | + | |
| 5447 | + | |
| 5448 | + | |
| 5449 | + | |
| 5450 | + | |
5436 | 5451 | | |
5437 | | - | |
5438 | | - | |
| 5452 | + | |
| 5453 | + | |
| 5454 | + | |
5439 | 5455 | | |
5440 | | - | |
5441 | | - | |
5442 | | - | |
| 5456 | + | |
| 5457 | + | |
| 5458 | + | |
| 5459 | + | |
| 5460 | + | |
| 5461 | + | |
| 5462 | + | |
| 5463 | + | |
| 5464 | + | |
5443 | 5465 | | |
5444 | | - | |
5445 | | - | |
5446 | | - | |
| 5466 | + | |
| 5467 | + | |
| 5468 | + | |
| 5469 | + | |
5447 | 5470 | | |
5448 | 5471 | | |
5449 | | - | |
| 5472 | + | |
| 5473 | + | |
| 5474 | + | |
| 5475 | + | |
| 5476 | + | |
| 5477 | + | |
| 5478 | + | |
| 5479 | + | |
| 5480 | + | |
| 5481 | + | |
| 5482 | + | |
| 5483 | + | |
| 5484 | + | |
5450 | 5485 | | |
5451 | | - | |
5452 | | - | |
5453 | | - | |
5454 | 5486 | | |
5455 | 5487 | | |
5456 | | - | |
| 5488 | + | |
5457 | 5489 | | |
5458 | 5490 | | |
5459 | 5491 | | |
| |||
Lines changed: 143 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
0 commit comments