[Webkit-unassigned] [Bug 117836] New: REGRESSION: accessing items in .children via id doesn't work when element is not rooted in DOM tree

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 20 08:22:38 PDT 2013


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

           Summary: REGRESSION: accessing items in .children via id
                    doesn't work when element is not rooted in DOM tree
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: graouts at apple.com


Created an attachment (id=205092)
 --> (https://bugs.webkit.org/attachment.cgi?id=205092&action=review)
Reduced testcase

Take an element such as this one:

<div>
    <div id=foo></div>
</div>

If you call `.children.foo` on this element when it's not yet in the DOM tree, you'll get null, while the same code once the element is rooted in the DOM tree gets a reference to the <div id=foo> element.

This is only failing in WebKit nightlies and works fine on Safari 6.0.5.

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