[Webkit-unassigned] [Bug 87330] Copy / paste inside PRE element re-inserts PRE element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 28 12:22:19 PDT 2012


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





--- Comment #2 from Ryosuke Niwa <rniwa at webkit.org>  2012-06-28 12:22:18 PST ---
The problem here is that pre has contenteditable so:

    if ((selectionStartWasStartOfParagraph && selectionEndWasEndOfParagraph && !startIsInsideMailBlockquote) ||
        startBlock == currentRoot || isListItem(startBlock) || selectionIsPlainText)
        m_preventNesting = false;

sets m_preventNesting false because startBlock is currentRoot. We should probably not set m_preventNesting false here in this case, and do this check later when we actually try to prevent nesting.

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