Bug Tracker

Opened 11 years ago

Closed 9 years ago

Last modified 8 years ago

#4431 closed enhancement (invalid)

Change the jQuery expando prefix to data-jquery

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

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 (6)

comment:1 Changed 11 years ago by dmethvin

Type: bugenhancement

comment:2 Changed 9 years ago by dmethvin

Component: unfileddata

comment:3 Changed 9 years ago by Rick Waldron

Keywords: needsreview added
Milestone: 1.4
Priority: triviallow
Status: newopen

comment:4 Changed 9 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 9 years ago by Rick Waldron

Resolution: invalid
Status: openclosed

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 9 years ago by dmethvin

Keywords: needsreview removed
Note: See TracTickets for help on using tickets.