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:
|
|
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)
Component: |
unfiled →
data
|
Keywords: |
needsreview added
|
Milestone: |
1.4
|
Priority: |
trivial →
low
|
Status: |
new →
open
|
Resolution: |
→ invalid
|
Status: |
open →
closed
|
Keywords: |
needsreview removed
|
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.