#8326 closed bug (duplicate)
Camelize problem with jQuery.fn.data()
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | 1.next |
Component: | data | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
I've made a fiddle to explain the problem. In fact, when you do $(el).data() you will get an object with the datas. If I have this : <el data-foo-bar="test">
$('el').data().fooBar will not work ($('el').data()foo-bar? will work) but in plain JS document.getElementsByTagName('el')[0].dataset.fooBar works.
Change History (3)
comment:1 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
comment:3 Changed 12 years ago by
Component: | unfiled → data |
---|---|
Priority: | undecided → high |
Note: See
TracTickets for help on using
tickets.
Duplicate of #7328.