[Webkit-unassigned] [Bug 26937] Copying and pasting into a contenteditable area can create <div>s surrounded by <span>s

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 31 12:30:44 PDT 2009


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





--- Comment #4 from Ryosuke Niwa <rniwa at webkit.org>  2009-07-31 12:30:42 PDT ---
Copy & paste bug appears when
1. There is style applied outside of the region copied (must be block)
2. The region being copied contains at least two block elements with at least
one having a different style than outside region.

On TOT, copying & paste the following HTML reproduces the bug. 
<div style="text-decoration: none;">
<div style="font-weight: bold;">one</div>
<div>two</div>
</div>

These bugs are caused by the lines 1010-1039 of markup.cpp.  In particular, we
shouldn't be adding span if the fragment we copied contained any block element.

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