Martin Robinson
56e79459f2
script: Modify and copy the contents of <textarea> placeholder less ( #43452 )
...
Instead of always doing the newline fixup on the `<textarea>`
placeholder, only do it when the placeholder attribute itself changes.
This avoids doing string replacements when they are not necessary (such
as when a `<textarea>` switches from having text to only having the
placeholder and viceversa).
In addition make it so that `DOMString::clear` preserves the string
allocation when called.
Testing: This is just a small optimization so testing should not be
necessary. Existing behavior is verified via WPT tests.
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
2026-03-19 15:57:28 +00:00
..
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-03-17 13:03:33 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-03-07 06:16:33 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-03-16 07:27:15 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 20:24:46 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-03-09 09:40:54 +00:00
2025-11-01 05:32:45 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-03-14 07:37:47 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-03-08 11:46:42 +00:00
2026-03-18 11:03:54 +00:00
2026-03-19 06:22:00 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-03-14 07:37:47 +00:00
2026-01-10 08:05:49 +00:00
2026-03-19 06:22:00 +00:00
2026-03-15 16:02:40 +00:00
2026-03-19 06:22:00 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-03-17 13:03:33 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-03-19 06:22:00 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-03-17 13:03:33 +00:00
2026-03-17 13:03:33 +00:00
2026-03-14 07:37:47 +00:00
2026-03-19 15:57:28 +00:00
2026-01-10 08:05:49 +00:00
2026-03-14 10:03:48 +00:00
2025-11-06 11:06:03 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-03-19 06:22:00 +00:00
2026-03-06 19:25:33 +00:00
2026-03-06 14:22:54 +00:00