[Webkit-unassigned] [Bug 33226] New: Indent inside li with br's changes order and creates new lists

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 5 12:10:58 PST 2010


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

           Summary: Indent inside li with br's changes order and creates
                    new lists
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jparent at google.com
                CC: rniwa at webkit.org, enrica at apple.com


Repro steps:
1. Create a list, with br's inside the li, aka, html is
<ul><li>one<br>two<br>three</li></ul>
2. Put cursor anywhere on the line with "three"
3. Indent (aka, execCommand('indent'))

Result: "three" moves above "one" in its own list (html is:
<ul><ul><li>three</li></ul><li>one<br>two<br></li></ul>)
Expected Result: "three" is indented, and stays after "two"

Seen in Safari 4.0.4 and Chrome 4.0.266.0.

Plexode demo - just click "eval js" to see it execute the indent:
http://www.plexode.com/cgi-bin/eval3.py#ht=%3Cdiv%20contentEditable%3E%3Cul%3E%3Cli%20id%3D'li'%3Eone%3Cbr%3Etwo%3Cbr%3Ethree%3C%2Fli%3E%3C%2Ful%3E%3C%2Fdiv%3E&ohh=1&ohj=1&jt=%2F%2F%20Put%20cursor%20near%20%22three%22%20and%20indent%0Avar%20r%20%3D%20document.createRange()%3B%0Ar.setStart(li%2C%204)%3B%0Ar.setEnd(li%2C%204)%3B%0As%20%3D%20window.getSelection()%3B%0As.removeAllRanges()%3B%0As.addRange(r)%3B%0Adocument.execCommand('indent')%3B&ojh=1&ojj=0&ms=100&oth=0&otj=0&cex=1

Also seen in all Google's editing products (Gmail, Docs, Sites, etc) and Midas
Demo.

-- 
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