Skip to main content

Bug Tracker

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: 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 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 gibson042 comment:1

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.