[wp-trac] [WordPress Trac] #61385: Revert using regex in block bindings HTML replacement logic
WordPress Trac
noreply at wordpress.org
Thu Jun 6 08:10:25 UTC 2024
#61385: Revert using regex in block bindings HTML replacement logic
-----------------------------+-----------------------------
Reporter: santosguillamot | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
-----------------------------+-----------------------------
Revert part of the changes made in this commit:
https://core.trac.wordpress.org/changeset/58298
The idea of that code was to simplify the logic and potentially support
more attributes in bindings, but it is causing other problems like this
issue: https://github.com/WordPress/gutenberg/issues/62347#top
Using regex seems unreliable, so I believe it is safer to revert these
changes and do the refactoring once the HTML API supports CSS selectors
and provides a way to set inner content.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61385>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list