[wp-trac] [WordPress Trac] #64609: HTML API: set_modifiable_text() ignores leading newlines in PRE, LISTING, TEXTAREA
WordPress Trac
noreply at wordpress.org
Fri Feb 27 12:56:12 UTC 2026
#64609: HTML API: set_modifiable_text() ignores leading newlines in PRE, LISTING,
TEXTAREA
--------------------------------------+-------------------------
Reporter: jonsurrell | Owner: jonsurrell
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 7.0
Component: HTML API | Version: 6.7
Severity: minor | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-------------------------
Comment (by jonsurrell):
In [changeset:"61754" 61754]:
{{{
#!CommitTicketReference repository="" revision="61754"
HTML API: Preserve `::set_modifiable_text()` TEXTAREA leading newlines.
HTML specifies that a single newline is ignored at the start of a
`TEXTAREA`. If `::set_modifiable_text()` is called with a leading newline,
ensure it is preserved in the resulting HTML.
Developed in https://github.com/WordPress/wordpress-develop/pull/11062.
Props jonsurrell, dmsnell.
See #64609.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64609#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list