[Webkit-unassigned] [Bug 62621] Span ID duplicated when pressing enter at beginning of span

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 14 16:48:04 PDT 2011


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





--- Comment #6 from Annie Sullivan <sullivan at chromium.org>  2011-06-14 16:48:04 PST ---
(In reply to comment #5)

Will create a patch to address the rest of the comments soon, wanted to answer this one right away in case I'm missing something:

> More interesting question to ask is whether if we'd ever delete the original element after cloning hierarchy, in which case we shouldn't be removing id attribute.

This function is called from two places in InsertParagraphCommand, and they both look like this:

        appendBlockPlaceholder(cloneHierarchyUnderNewBlock(ancestors, blockToInsert));

        // In this case, we need to set the new ending selection.
        setEndingSelection(VisibleSelection(insertionPosition, DOWNSTREAM));
        return;

Neither appendBlockPlaceholder nor setEndingSelection ever delete any nodes, so I think we're safe here.

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