[Webkit-unassigned] [Bug 7640] Menu items are displayed as "undefined"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 7 07:43:44 PST 2007


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


ap at webkit.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #12277|                            |review?
               Flag|                            |
             Status|NEW                         |ASSIGNED
         AssignedTo|webkit-                     |ap at webkit.org
                   |unassigned at lists.webkit.org |




------- Comment #5 from ap at webkit.org  2007-01-07 07:43 PDT -------
Created an attachment (id=12277)
 --> (http://bugs.webkit.org/attachment.cgi?id=12277&action=view)
proposed fix

The problem here was that a local variable "item" got shadowed by Node::item
within a "with" block. AFAICT, there is no reason to have this method on Node.
"Gecko DOM reference" cited in code comment is probably
<http://developer.mozilla.org/en/docs/DOM:element.item>, which specifically
states that "despite this article's name, item() is not a method of DOM Element
or Node."

The included test passes in Firefox 2 and IE 6.


-- 
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.
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list