Opened 10 years ago
Closed 10 years ago
#13368 closed bug (duplicate)
Creating jQuery instance with leading white space fails
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Here is a sample for the use case: http://jsbin.com/ecarub/2/edit
If you remove the leading white space in the DIV#foo or in the commented JavaScript it will work properly.
It will also work properly with jQuery version 1.8.*.
P.S. I've tried the git version of jQuery. Unfortunately same behavior can be observed.
Note: See
TracTickets for help on using
tickets.
Duplicate of #13223.
http://jquery.com/upgrade-guide/1.9/#jquery-htmlstring-versus-jquery-selectorstring
Also, please use the jQuery migrate plugin to check for other such issues.