Skip to main content

Bug Tracker

Side navigation

#4431 closed enhancement (invalid)

Opened March 27, 2009 04:59AM UTC

Closed November 03, 2010 01:49AM UTC

Last modified March 13, 2012 04:57PM UTC

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:

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 = {};

Attachments (0)
Change History (6)

Changed March 30, 2009 11:01PM UTC by dmethvin comment:1

type: bugenhancement

Changed June 12, 2010 02:05PM UTC by dmethvin comment:2

component: unfileddata

Changed November 01, 2010 09:53PM UTC by rwaldron comment:3

keywords: → needsreview
milestone: 1.4
priority: triviallow
status: newopen

Changed November 03, 2010 01:21AM UTC by dmethvin comment:4

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.

Changed November 03, 2010 01:49AM UTC by rwaldron comment:5

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!

Changed November 05, 2010 02:16AM UTC by dmethvin comment:6

keywords: needsreview