Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add more commentary and warnings
  • Loading branch information
ockham committed Aug 20, 2025
commit e98185e27331ac862983e692fbef6ff8233a9427
14 changes: 13 additions & 1 deletion src/wp-includes/class-wp-block-bindings-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@
*
* This class can be used to perform the sort of structural
* changes to an HTML document that are required by
* Block Bindings.
* Block Bindings. Namely, proper nesting structure of HTML is
* maintained, but HTML updates could still leak out of the
* containing parent node. For example, this allows inserting
* an A element inside an open A element, which would close
* the containing A element.

* Modifications may be requested for a document _once_ after
* matching a token. Due to the way the modifications are
* applied, it's not possible to replace the rich text content
* for a node more than once. Furthermore, if a `replace_rich_text()`
* operation is followed by a `seek()` to a position before the
* updated rich text content, any modification at that earlier
* position will lead to broken output.
*
* @access private
*
Expand Down