[Webkit-unassigned] [Bug 8329] New: DOMNodeList valueForKey:@"length" incorrectly returns nil

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Tue Apr 11 14:08:56 PDT 2006


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

           Summary: DOMNodeList valueForKey:@"length" incorrectly returns
                    nil
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: speth at end.com


Using valueForKey: to access the length attribute of a DOMNodeList returns nil,
not the the actual value returned by the length method.

For example:

id nodes = [[[webView mainFrame] DOMDocument] childNodes];
if ([nodes length] != [[nodes valueForKey:@"length"] intValue])
    NSLog(@"bad valueForKey:");

Interestingly, this does not fail:

id nodes2 = [[[webView mainFrame] DOMDocument] valueForKey:@"childNodes"];
if ([nodes2 length] != [[nodes2 valueForKey:@"length"] intValue])
    NSLog(@"bad valueForKey:");


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