Opened 9 years ago
Closed 9 years ago
#14375 closed bug (notabug)
append() leaking objects into the global namespace
Reported by: | 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.
Note: See
TracTickets for help on using
tickets.
Note that
item
,refundAmount
, andrefundCurrency
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 withid
s.