Calling $.fn.data without arguments on a non-DOMelement in 1.4.4
|Reported by:||timmolendijk||Owned by:||snover|
Try the following code in 1.4.3 and then in 1.4.4:
In 1.4.3 the expected data object is returned, in 1.4.4 a TypeError in thrown: "Cannot read property 'length' of undefined"
The problem is in line 1250, in which it is assumed that the data object has an "attributes" property (which is obviously a valid assumption for DOM nodes with nodeType 1 but not for many other object types).
Change History (10)
comment:4 Changed 6 years ago by
|Component:||unfiled → data|
|Priority:||undecided → low|
|Status:||closed → reopened|
comment:8 Changed 6 years ago by
|Priority:||low → blocker|
|Status:||reopened → open|