[Webkit-unassigned] [Bug 84597] New: InsertUnorderedList and InsertOrderedList (execCommand) do not remove bullets
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 23 07:37:32 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=84597
Summary: InsertUnorderedList and InsertOrderedList
(execCommand) do not remove bullets
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Windows 7
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: stephane.poirier01 at gmail.com
Created an attachment (id=138341)
--> (https://bugs.webkit.org/attachment.cgi?id=138341&action=review)
Simple HTML file with basic test case.
In some cases, using "InsertUnorderedList" or "InsertOrderedList" command on editable + designMode content allows to insert bullets to elements, but not to remove them.
Steps to reproduce
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
1) Click in a DIV having properties: contentEditable=='true' and designMode == 'on'
2) Paste the following text in the DIV:
This is my list of items:
Item 1
Item 2
Item 3
This is the end of my list.
3) Select the lines "Item 1" to "Item 3"
4) Execute the following command in the debugging console: "{myEditableDiv}.execCommand("InsertUnorderedList", false, null)"
- (List is now bulleted)
5) Execute the same command in the debugging console, again: "{myEditableDiv}.execCommand("InsertUnorderedList", false, null)"
Actual result
¯¯¯¯¯¯¯¯¯¯¯¯¯
- List is still bulleted
Expected result
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- List is unbulleted
Additional notes
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- Works fine with single line selected
- If multiple lines are selected, if words fine if and only if the last line is part of the selection
- Reproduced under Google Chrome 18.0.1025.162 release, Google Chrome 20.0.1113.0 canary and Safari 5.1.2
Attachment
¯¯¯¯¯¯¯¯¯¯
Simple HTML file with basic test case. Use the following command:
document.getElementById("editableDiv").execCommand("InsertUnorderedList", false, null)
--
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