[wp-trac] [WordPress Trac] #64751: ::set_modifiable_text() should only work on atomic elements in the HTML namespace

WordPress Trac noreply at wordpress.org
Tue Mar 3 14:59:17 UTC 2026


#64751: ::set_modifiable_text() should only work on atomic elements in the HTML
namespace
--------------------------------------+-------------------------
 Reporter:  jonsurrell                |       Owner:  jonsurrell
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  7.0
Component:  HTML API                  |     Version:  6.7
 Severity:  minor                     |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------
Changes (by jonsurrell):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61796" 61796]:
 {{{
 #!CommitTicketReference repository="" revision="61796"
 HTML API: Check tag namespace in `::set_modifiable_text()`.

 The method should only apply to special "atomic" HTML tags like `SCRIPT`
 or `TEXTAREA`. `::set_modifiable_text()` should not apply to tags with the
 same name in other namespaces.

 Developed in https://github.com/WordPress/wordpress-develop/pull/11083.

 Props jonsurrell, dmsnell, westonruter.
 Fixes #64751.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64751#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list