[Webkit-unassigned] [Bug 113354] New: Nested lists are rendered incorrectly when pasting newlines in contenteditable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 26 16:53:30 PDT 2013


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

           Summary: Nested lists are rendered incorrectly when pasting
                    newlines in contenteditable
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nghanavatian at rim.com
                CC: rniwa at webkit.org


Created an attachment (id=195189)
 --> (https://bugs.webkit.org/attachment.cgi?id=195189&action=review)
Insert a new list item on window.load

1. Go to http://html5demos.com/contenteditable
2. Create a new line at the end of the list. Should start new item "4."
3. Copy/Paste in a newline character. Copying from plaintext reproduces the issue easier.

The new line creates a new item "5." but this is drawn over top of "4."

Observe that the newline, when pasted in, causes the markup to break. We end up with: 
<ol>
 <li>
  <li>
   <br>
  </li>
 </li>
</ol>

Simply loading a site with this markup won't reproduce the issue because the parser corrects it to:
<ol>
 <li>
 </li>
 <li>
  <br>
 </li>
</ol>

The attached test case recreates the scenario by editting the innerhtml directly.

Presumably, in the case where we paste into contenteditable, we bypass the parser and layout the list item number incorrectly.

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