Side navigation
#13418 closed bug (duplicate)
Opened February 08, 2013 04:51PM UTC
Closed February 08, 2013 04:54PM UTC
jQuery selector $() throws 'unrecognized expression', when creating a DOM element with spaces in front
Reported by: | oligsei.reznikov@gmail.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Example:\\\\
jQuery 1.9.x
> $('<span />'); [<span></span>] > $(' <span />'); Error: Syntax error, unrecognized expression: <span />
jQuery 1.8.x
> $('<span />'); [<span></span>] > $(' <span />'); [<span></span>]
Attachments (0)
Change History (1)
Changed February 08, 2013 04:54PM UTC by comment:1
resolution: | → duplicate |
---|---|
status: | new → closed |
Duplicate of #13223.http://jquery.com/upgrade-guide/1.9/#jquery-htmlstring-versus-jquery-selectorstring
Use the jQuery Migrate plugin if you need it.