Ticket #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: | ||
| 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: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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
