[Webkit-unassigned] [Bug 131582] New:=?UTF-8?Q?=20Making=20a=20set=20of=20paragraphs=20into=20list=20items=E2=80=94using=20=60execCommand=60=E2=80=94freezes=20if=20the=20previous=20visible=20sibling=E2=80=94or=20its=20children=E2=80=94is=20a=20div=20with=20=60white=2Dspace?=: pre; and has a newline as suffix

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 12 06:57:28 PDT 2014


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

           Summary: Making a set of paragraphs into list items—using
                    `execCommand`—freezes if the previous visible
                    sibling—or its children—is a div with `white-space:
                    pre; and has a newline as suffix
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.9
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bjarne at panes.no


Steps to reproduce:
- Load a DOM with: 
  - `div` styled with `white-space: pre` with a newline as its content
  - a content editable div with two paragraphs 
- Select the two paragraphs
- Execute `insertOrderedList`

(see attached file)

Expected Results:
- The paragraphs get turned into a ordered list with two list items

Actual Results:
- The UA hangs

Notes:
- Also happens for `insertUnorderedList`
- Also happens if the div is styled with `white-space: pre-warp;`

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