[Webkit-unassigned] [Bug 118287] New: SelectAll does not work if first element within body is content editable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 2 02:33:58 PDT 2013


           Summary: SelectAll does not work if first element within body
                    is content editable
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: vanivhegde at gmail.com

Created an attachment (id=205880)
 --> (https://bugs.webkit.org/attachment.cgi?id=205880&action=review)

I have attached the test html.

Steps to Reproduce:
Load the test html
Click on SelectAll button OR do CTRL+A

Expected Result:
The entire page should be selected

Actual Result:
Page does not get selected

Please note that this happens only when the first element in body is content editable

The test html source is as below:
        <script type="text/javascript">function SelectAll(){document.execCommand('selectAll', false, null);}</script>
        <div contenteditable=true>Select this text</div>
        <button onclick="SelectAll()">SelectAll</button>

Had there been another div without contenteditable property set, before the contenteditable div, select all works just fine
i.e. this works
                <div>Select this text</div>
        <div contenteditable=true>Select this text</div>
        <button onclick="SelectAll()">SelectAll</button>

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