[Webkit-unassigned] [Bug 194157] New: Support line feed entities in attributes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 1 08:45:47 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=194157

            Bug ID: 194157
           Summary: Support line feed entities in attributes
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Macintosh
                OS: macOS 10.13
            Status: NEW
          Severity: Enhancement
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: webkit at 75thtrombone.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190201/5b9140ed/attachment.html>


More information about the webkit-unassigned mailing list