[Webkit-unassigned] [Bug 27522] New: Creating list clears background color

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 21 15:23:15 PDT 2009


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

           Summary: Creating list clears background color
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://www.plexode.com/cgi-bin/eval3.py#ht=%3Cdiv%20id
                    %3Deditor%20contenteditable%3Dtrue%3Eone%3Cdiv%3Etwo%3
                    C%2Fdiv%3E%3Cdiv%3Ethree%3C%2Fdiv%3E%3C%2Fdiv%3E&ohh=1
                    &ohj=1&jt=var%20div%20%3D%20document.getElementById('e
                    ditor')%3B%0Adiv.focus()%3B%0A%2F%2F%20After%20this%2C
                    %20background%20is%20yellow%0Adocument.execCommand('ba
                    ckcolor'%2Cfalse%2C%20'yellow')%3B%0Adiv.focus()%3B%0A
                    %2F%2F%20After%20this%2C%20background%20color%20is%20r
                    emoved.%0Adocument.execCommand('insertUnorderedList'%2
                    C%20false%2C%20null)%3B%0Adiv.blur()%3B&ojh=1&ojj=1&ms
                    =100&oth=0&otj=0&cex=1
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: sullivan at google.com
                CC: eric at webkit.org, jparent at google.com


STEPS TO REPRODUCE:
1. Type a few lines of text
2. Select all the text
3. Use execCommand to set the background color of the text.
4. Use execCommand to create and unordered list

EXPECTED RESULT:
List is created with background color

ACTUAL RESULT:
List is created, background color removed.

Repro at
http://www.plexode.com/cgi-bin/eval3.py#ht=%3Cdiv%20id%3Deditor%20contenteditable%3Dtrue%3Eone%3Cdiv%3Etwo%3C%2Fdiv%3E%3Cdiv%3Ethree%3C%2Fdiv%3E%3C%2Fdiv%3E&ohh=1&ohj=1&jt=var%20div%20%3D%20document.getElementById('editor')%3B%0Adiv.focus()%3B%0A%2F%2F%20After%20this%2C%20background%20is%20yellow%0Adocument.execCommand('backcolor'%2Cfalse%2C%20'yellow')%3B%0Adiv.focus()%3B%0A%2F%2F%20After%20this%2C%20background%20color%20is%20removed.%0Adocument.execCommand('insertUnorderedList'%2C%20false%2C%20null)%3B%0Adiv.blur()%3B&ojh=1&ojj=1&ms=100&oth=0&otj=0&cex=1

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