[Webkit-unassigned] [Bug 74126] New: Line breaks lost when pasted into textarea that starts with a blank line set while textarea is hidden

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 8 14:18:15 PST 2011


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

           Summary: Line breaks lost when pasted into textarea that starts
                    with a blank line set while textarea is hidden
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Keywords: HasReduction, InChromiumBugs, NeedsRadar
          Severity: Normal
          Priority: P1
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rniwa at webkit.org
                CC: darin at apple.com, tkent at chromium.org, enrica at apple.com


Reproduction:

<textarea id="test" style="display: none" cols="50" rows="10"></textarea>
<script type="text/javascript">
var textarea = document.querySelector('textarea');
textarea.value = "\nwebkit";
textarea.style.display = "";

textarea.focus();
textarea.selectionStart = textarea.selectionEnd = 0;
document.execCommand('insertHTML', false, 'hello\nworld\n');
alert(textarea.value);
</script>

Alert doesn't have any line breaks :(

http://crbug.com/104620

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list