Commit 1637791
committed
HTML API: Prevent infinite loop in foreign content reprocessing step.
An infinite loop was discovered in specific situations within foreign content inside the HTML Processor when a given node inside foreign content must be handled in the rules for the current insertion mode.
This patch resolves the loop by handling those nodes directly instead of reprocessing the node, which previously was redirecting control flow back to where the loop started.
Developed in https://github.com/wordpress/wordpress-develop/7347
Discussed in https://core.trac.wordpress.org/ticket/61656
Follow-up to [58868].
Props jonsurrell.
See #61576.
git-svn-id: https://develop.svn.wordpress.org/trunk@59024 602fd350-edb4-49c9-b593-d223f7449a821 parent d2ce8dd commit 1637791
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4501 | 4501 | | |
4502 | 4502 | | |
4503 | 4503 | | |
4504 | | - | |
| 4504 | + | |
4505 | 4505 | | |
4506 | 4506 | | |
4507 | 4507 | | |
| |||
4577 | 4577 | | |
4578 | 4578 | | |
4579 | 4579 | | |
| 4580 | + | |
4580 | 4581 | | |
4581 | 4582 | | |
4582 | 4583 | | |
| |||
0 commit comments