Bug Tracker

Modify

Ticket #6921 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

data() method should read html5 data-* attributes

Reported by: paul.irish Owned by:
Priority: Milestone: 1.4.3
Component: data Version: 1.4.2
Keywords: Cc:
Blocking: Blocked by:

Description

from this: <div data-patchlocation="github" data-awesome="true" data-testcount="28" />

to this: $( div ).data( 'patchlocation' ) "github" $( div ).data( 'awesome' ) true $( div ).data( 'testcount' ) 28

more detail:  http://forum.jquery.com/topic/patch-feedback-requested-html5-data-attrs-transcend-into-the-fn-data-api

Change History

comment:2 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.