[Webkit-unassigned] [Bug 18407] New: document.images with multiple named items returns back a collection

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 10 09:04:28 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18407

           Summary: document.images with multiple named items returns back a
                    collection
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: daniel.wester at turner.com


If you have the following on a page:
<img src="http://image1" name="myimage" />
<img src="http://image2" name="myimage" />

Then in javascript reference document.images['myimage']. In IE, Firefox and
Opera this returns back a reference to one of the images. However Safari is
returning back a Collection object. 

According to DOM Level 1 (HTML)
http://www.w3.org/TR/REC-DOM-Level-1/level-one-html.html:
The Node with a name or id attribute whose value corresponds to the specified
string. Upon failure (e.g., no node with this name exists), returns null.


-- 
Configure bugmail: http://bugs.webkit.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