Bug 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 Reporter: Bjarne Mogstad <bjarne>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.9   
Attachments:
Description Flags
Steps to reproduce none

Bjarne Mogstad
Reported 2014-04-12 06:57:48 PDT
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;`
Attachments
Steps to reproduce (290 bytes, text/html)
2014-04-12 06:58 PDT, Bjarne Mogstad
no flags
Bjarne Mogstad
Comment 1 2014-04-12 06:58:56 PDT
Created attachment 229204 [details] Steps to reproduce
Note You need to log in before you can comment on or make changes to this bug.