Bug Tracker

Opened 9 years ago

Closed 9 years ago

#14375 closed bug (notabug)

append() leaking objects into the global namespace

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.3
Keywords: Cc:
Blocked by: Blocking:


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