Skip to main content

Bug Tracker

Side navigation

#6484 closed bug (fixed)

Opened April 26, 2010 02:19PM UTC

Closed November 05, 2010 02:05AM UTC

Last modified November 05, 2010 02:06AM UTC

data attribute overwrited in new node creation

Reported by: naugtur Owned by: naugtur
Priority: undecided Milestone: 1.4.3
Component: data Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:

found here:


var fun=function(){



var parms={

'id': 'sth',

'text': 'click',


'data': {

'somedata': 'somedata'



var _new_li = $('<li/>',parms);



After clicking on the li element error is thrown

e is undefined in jquery line 1919

var events =, "events"), handlers = events[ event.type ];

events is undefined.

jquery overwrites events stored in data.

It probably should extend.

Attachments (0)
Change History (4)

Changed October 29, 2010 04:52PM UTC by rwaldron comment:1

owner: → naugtur
priority: → undecided
status: newpending

Please provide a reduced jsFiddle test case, thanks!

Additionally, test against the jQuery 0 GIT version to ensure the issue still exists.

Changed October 29, 2010 04:58PM UTC by rwaldron comment:2

keywords: creation data overwriteneedsreview

Changed November 05, 2010 02:05AM UTC by dmethvin comment:3

resolution: → fixed
status: pendingclosed

Changed November 05, 2010 02:06AM UTC by dmethvin comment:4

keywords: needsreview