[Webkit-unassigned] [Bug 53846] New: Webkit removes empty text nodes and does not allow creating such ones.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 5 03:27:06 PST 2011


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

           Summary: Webkit removes empty text nodes and does not allow
                    creating such ones.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nowaalex at gmail.com


Here's a code example:

var a = document.createElement( 'div' );
var b = document.createTextNode( 's' );
a.appendChild( b );
document.body.appendChild( a );

And code line 'b.deleteData( 0, 1 )' will cause webkit not only to remove the text node's data, but a text node. I develop an online editor project and this behaviour for me is very disappointed. Opera and firefox( gecko ) treat empty text nodes normally.

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