[Webkit-unassigned] [Bug 6102] New: DOM changing with duplicated id's

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Thu Dec 15 13:41:13 PST 2005


http://bugzilla.opendarwin.org/show_bug.cgi?id=6102

           Summary: DOM changing with duplicated id's
           Product: WebKit
           Version: 412+
          Platform: Macintosh
               URL: http://www.darkrock.co.uk/bug.html
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: chris at darkrock.co.uk


The bug shows the problem:

Create a new div with the same id as an existing div. Place the new div within the DOM tree, then 
remove the old div.

When you try and use document.getElementById() to get the new DOM node, you get a null value. This 
only happens in Safari. I have tested in IE, Opera, Firefox _and_ Konqueror and they all seem to work.

There is a work around which can be found here: http://www.darkrock.co.uk/bug-workaround.html

This works by removing the node before creating the new one. I believe this to be a genuine Webkit 
bug.

Chris

-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list