Side navigation
#14375 closed bug (notabug)
Opened September 19, 2013 11:02PM UTC
Closed September 20, 2013 12:17AM UTC
append() leaking objects into the global namespace
Reported by: | chris.galardi@sojostudios.com | 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.
Attachments (0)
Change History (1)
Changed September 20, 2013 12:17AM UTC by comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
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.