[Webkit-unassigned] [Bug 71207] An extra line break is inserted when pasting into a font element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 22 19:20:31 PDT 2012


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





--- Comment #11 from yi shen <yi.4.shen at nokia.com>  2012-03-22 19:20:31 PST ---
(In reply to comment #10)
> (In reply to comment #9)
> > > In general, we shouldn't try to out-smart what Position does. Position.next/previous and all other editing code has been well-tested and deals with all sorts of edge-cases. Adding completely different algorithm to deal with this particular situation is extremely undesirable.
> > 
> > The reason why I don't use Position.next here because it may return the child node's position and then moves the insertion position into the child node.
> > e.g without my changes, <div><u><u>abc^</u><u>efg</u></u></div> ==> <div><u><u>abc</u><u>^efg</u></u></div>
> 
> What you need here is to use/make a function like nodeToSplitToAvoidPastingIntoInlineNodesWithStyle that finds the position outside of the inline elements.

Thanks, will look at it and provide a new patch :)

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