Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14375 closed bug (notabug)

append() leaking objects into the global namespace

Reported by: chris.galardi@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.3
Keywords: Cc:
Blocked by: Blocking:

Description

On webkit browsers (i tested current chrome and safari on os x 10.8.4), save http://pastebin.com/8i1KtAHT as an html file and load. you'll see in the webkit console output that the variable "id" is being leaked into the global namespace by the $.append() function.

Change History (1)

comment:1 Changed 6 years ago by gibson042

Resolution: notabug
Status: newclosed

Note that item, refundAmount, and refundCurrency also "leak", even if you reimplement with .innerHTML instead of jQuery. Webkit, like many browser engines, defines properties on the global object (window) to access elements with ids.

Note: See TracTickets for help on using tickets.