Bug Tracker

Opened 12 years ago

Closed 12 years ago

#9625 closed enhancement (invalid)

Support full range of allowed IDs in HTML5

Reported by: ssp Owned by:
Priority: high Milestone: 1.next
Component: selector Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:


HTML5 seems to legalise all non-space characters for ID strings.

This creates a situation where you can have IDs which jQuery cannot match because its 'quickExpr' regular expression matches according to the more restrictive HTML4 standard.

See http://jsfiddle.net/2Zpn4/4/ for an example showing that document.getElementByID can return elements which JQuery cannot match.

Change History (3)

comment:1 Changed 12 years ago by Rick Waldron

Component: unfiledselector
Priority: undecidedhigh

the /TR/ spec pages should not be used as reference as they are considered "trash" and exist only for record

The correct reference would be:


Last edited 12 years ago by Rick Waldron (previous) (diff)

comment:2 Changed 12 years ago by Rick Waldron

As a note, attribute selectors _do_ work here:


comment:3 Changed 12 years ago by dmethvin

Resolution: invalid
Status: newclosed

Just need to escape the special chars.


Note: See TracTickets for help on using tickets.