Bug Tracker

Modify

Ticket #9794 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

jQuery.fn.data() correctly handle access to arbitrary data property values

Reported by: rwaldron Owned by: rwaldron
Priority: high Milestone: 1.6.3
Component: data Version: 1.6.2
Keywords: Cc:
Blocking: Blocked by:

Description

Change History

comment:1 Changed 3 years ago by rwaldron

  • Owner set to rwaldron
  • Status changed from new to assigned

comment:2 Changed 3 years ago by rwaldron

  • Priority changed from undecided to high
  • Component changed from unfiled to data

The issue was basically in the way i was previously evaluating the existence of camel cased properties

Fixed. Adds 18 tests for handling access to arbitrary data property values with hyphenated and camel cased property names

 https://github.com/jquery/jquery/pull/432

comment:3 Changed 3 years ago by rwaldron

  • Summary changed from jQuery.fn.data() keys with hyphens should be accessible to jQuery.fn.data() handle access to arbitrary data property values

comment:4 Changed 3 years ago by rwaldron

  • Summary changed from jQuery.fn.data() handle access to arbitrary data property values to jQuery.fn.data() correctly handle access to arbitrary data property values

comment:5 Changed 3 years ago by rwaldron

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

comment:6 Changed 3 years ago by dmethvin

  • Milestone changed from 1.next to 1.6.3

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.