Bug Tracker

Modify

Ticket #4431 (closed enhancement: invalid)

Opened 4 years ago

Last modified 15 months ago

Change the jQuery expando prefix to data-jquery

Reported by: dantman Owned by:
Priority: low Milestone:
Component: data Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

 http://www.whatwg.org/specs/web-apps/current-work/#custom-data-attribute HTML 5 defines a specific pattern for custom data on nodes. Seams like the best idea to make use of that standard for defining the jQuery expando.

To fit that standard, this line: var expando = "jQuery" + now(), uuid = 0, windowData = {}; Would change to: var expando = "data-jquery" + now(), uuid = 0, windowData = {};

Change History

comment:1 Changed 4 years ago by dmethvin

  • Type changed from bug to enhancement

comment:2 Changed 3 years ago by dmethvin

  • Component changed from unfiled to data

comment:3 Changed 3 years ago by rwaldron

  • Keywords needsreview added
  • Priority changed from trivial to low
  • Status changed from new to open
  • Milestone 1.4 deleted

comment:4 Changed 3 years ago by dmethvin

Just a clarification that jQuery adds a *property* (expando) to the element, not an *attribute*. It doesn't look like the HTML5 spec has anything to say about naming of properties.

comment:5 Changed 3 years ago by rwaldron

  • Status changed from open to closed
  • Resolution set to invalid

I hadn't had a chance to re-read the data-* attrs portion of the spec, but now I have and in doing so, will be closing this ticket as invalid. Thanks Dave!

comment:6 Changed 3 years ago by dmethvin

  • Keywords needsreview removed

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.