Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13418 closed bug (duplicate)

jQuery selector $() throws 'unrecognized expression', when creating a DOM element with spaces in front

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.0
Keywords: Cc:
Blocked by: Blocking:


jQuery 1.9.x

> $('<span />');
> $(' <span />');
  Error: Syntax error, unrecognized expression: <span />

jQuery 1.8.x

> $('<span />');
> $(' <span />');

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: duplicate
Status: newclosed

Duplicate of #13223.

Use the jQuery Migrate plugin if you need it.

Note: See TracTickets for help on using tickets.