RESOLVED CONFIGURATION CHANGED194157
Support line feed entities in attributes
https://bugs.webkit.org/show_bug.cgi?id=194157
Summary Support line feed entities in attributes
Lanny Heidbreder
Reported 2019-02-01 08:45:47 PST
OVERVIEW: It would be useful to include line breaks in the placeholder attribute of a textarea element. Other browsers allow this by supporting the HTML entity for the Line Feed character, 
. But as of Safari Technology Preview 74, Safari doesn't render the entity. STEPS TO REPRODUCE: Create a textarea element with a placeholder attribute of "Line 1
Line 2" EXPECTED RESULTS: The textarea displays this placeholder text: Line 1 Line 2 ACTUAL RESULTS: The textarea displays this placeholder text: Line 1Line 2 ADDITIONAL INFO: Web Inspector displays the attribute with a space instead of the entity, while the rendered element in the browser has no space at all. However, selecting the textarea in the inspector and running $0.getAttribute('placeholder') in the console correctly displays the line break.
Attachments
Ahmad Saleem
Comment 1 2022-11-14 12:37:04 PST
I changed it into following JSFiddle: Link - https://jsfiddle.net/geynrdak/show I am not able to reproduce "Actual Result" in above using Safari 16.1 and it shows similar to Firefox Nightly 108 and Chrome Canary 110. Marking this as "RESOLVED CONFIGURATION CHANGED". Thanks!
Note You need to log in before you can comment on or make changes to this bug.