[Webkit-unassigned] [Bug 62092] setting innerText to an empty string on editable div loses focus

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 8 15:51:28 PDT 2011


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


Una Sabovic <una.sabovic at palm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #96299|0                           |1
        is obsolete|                            |




--- Comment #7 from Una Sabovic <una.sabovic at palm.com>  2011-06-08 15:51:28 PST ---
Created an attachment (id=96498)
 --> (https://bugs.webkit.org/attachment.cgi?id=96498&action=review)
proposed patch

LayoutTests/editing/selection/character-data-mutation.html was failing because it expects selection to be set to NULL after selection start/end nodes are removed. This is no longer true.
For example the first call to runTestPairs removes the SPAN 0x823e108 and expects resulting selection to be null.

Tree before modification:
BODY    0x81c00c8
    #text    0x81c0118 "\n"
    #comment    0x81c32d0
    #text    0x81c3328 "\n"
    DIV    0x81c3498
*        SPAN    0x823e108
            #text    0x81bfe40 "hello"
        #text    0x823f920 " world"
    #text    0x81c0150 "\n\n"

Tree after modification and new selection:

BODY    0x8200880
    #text    0x81e0b70 "\n"
    #comment    0x8200ef8
    #text    0x8200f50 "\n"
*    DIV    0x8204720
        #text    0x8209248 " world"
    #text    0x82053e8 "\n\n"
    SCRIPT    0x8205420
selection start: position 0 of child 3 {DIV} of body
selection end:   position 1 of child 3 {DIV} of body

I updated the test with new expected results.


Can you please double check this test editing/selection/5497643.html? I've changed it to output the render tree since it was explicitly checking for newSelection == null which is no longer true.

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