Bug Tracker

Opened 6 years ago

Closed 5 years ago

#14507 closed feature (notabug)

Port .uniqueId() and .removeUniqueId() from jQuery UI

Reported by: scottgonzalez Owned by:
Priority: low Milestone: None
Component: core Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

Description

This is used in several places in jQuery UI and jQuery Mobile, generally for ARIA. This is also useful for any situation where an attribute references another element by id, such as for and list.

https://github.com/jquery/jquery-ui/blob/601ad962e0a417bb369378ed7704a0b493eac365/ui/jquery.ui.core.js#L72-L90

Change History (6)

comment:1 Changed 6 years ago by jzaefferer

Some name suggestions from the Amsterdam meeting:

  • ensureId() and ???
  • fosterUniqueId() and removeFosteredId()

comment:2 Changed 6 years ago by timmywil

Component: unfiledcore
Priority: undecidedlow
Status: newopen

comment:3 Changed 6 years ago by scottgonzalez

I came across a request for this to move to core on Twitter: http://twitter.com/yaroshevych/status/409668441164247040

comment:4 Changed 6 years ago by jzaefferer

Can this at least get a milestone of 1.next/2.next?

comment:5 Changed 6 years ago by dmethvin

Should we be looking at using it internally then? Normally we don't add plugin material unless we need it internally.

comment:6 Changed 5 years ago by dmethvin

Resolution: notabug
Status: openclosed

We don't need these and they're not part of our DOM core competency, so I don't think we'd add them.

Note: See TracTickets for help on using tickets.