[Webkit-unassigned] [Bug 32003] New: execCommand "indent" inside list causes incorrect positioning of the indented sub-list
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 30 17:39:33 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=32003
Summary: execCommand "indent" inside list causes incorrect
positioning of the indented sub-list
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: vkarun at google.com
A reduction which shows the exact behavior is given below.
http://www.plexode.com/cgi-bin/eval3.py#ht=%3Cdiv%20contenteditable%3D%22true%22%3E%0A%3Cul%3E%3Cli%20id%3D%22l%22%3Ea%3Cbr%3E%3Cbr%3E%3C%2Fli%3E%3Cli%3Eb%3C%2Fli%3E%3C%2Ful%3E%0A%3C%2Fdiv%3E&ohh=1&ohj=1&jt=li%20%3D%20document.getElementById(%22l%22)%3B%0Ar%20%3D%20document.createRange()%3B%0Ar.setStart(li%2C%202)%3B%0Ar.setEnd(li%2C%202)%3B%0As%20%3D%20window.getSelection()%3B%0As.removeAllRanges()%3B%0As.addRange(r)%3B%0Adocument.execCommand('indent'%2C%20false)%3B&ojh=1&ojj=1&ms=100&oth=0&otj=0&cex=1
The steps followed in the reduction are detailed below:-
1) Start with the following HTML
<div contenteditable="true">
<ul><li id="l">a<br><br></li><li>b</li></ul>
</div>
2) Programatically create a range containing the last <BR> of <LI id="l">.
3) Invoke document.execCommand('indent', false)
Actual results:-
<ul><ul><li><br></li></ul><li>a<br></li><li>b</li></ul>
Expected results:-
<ul><li>a<br></li><ul><li><br></li></ul><li>b</li></ul>
--
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