[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
https://bugs.webkit.org/show_bug.cgi?id=118287
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)
test.html
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
NOTE:
Please note that this happens only when the first element in body is content editable
The test html source is as below:
<html>
<head>
<script type="text/javascript">function SelectAll(){document.execCommand('selectAll', false, null);}</script>
</head>
<body>
<div contenteditable=true>Select this text</div>
<button onclick="SelectAll()">SelectAll</button>
</body>
</html>
Had there been another div without contenteditable property set, before the contenteditable div, select all works just fine
i.e. this works
<body>
<div>Select this text</div>
<div contenteditable=true>Select this text</div>
<button onclick="SelectAll()">SelectAll</button>
</body>
--
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