-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Syntax error, unrecognized expression: :nth-child #5141
Comments
I figured out where the problem is. (Editor didnt allow me to post html here so I changed tags) Seems this old bug have came back #1107 |
You can call the navbar plugin to enhance the navbar after you appended the list items. Without list items there is nothing to enhance yet, so you can leave out However, it should also be possible to enhance the navbar by using The error only occurs with jQuery core 1.8.x, because of changes in Sizzle. It's not a regression because with one list item there is no issue and that's what #1107 was about. The reason the issue wasn't noticeable before was in fact a bug in Sizzle. |
Use tripple backticks to add code blocks to your post. See http://github.github.com/github-flavored-markdown/ |
This one caught me when I managed to close my ul incorrectly - I used |
this worked for me after upgrading to query 1.8.2 and getting the nth child error with jquery mobile "You can call the navbar plugin to enhance the navbar after you appended the list items. Without list items there is nothing to enhance yet, so you can leave out data-role="navbar". That data- attribute is only used to auto initialize the navbar plugin. Example: http://jsbin.com/ikisux/35/edit" I just checked for existence of data, and if there was not any, did not place the navbar in my page. Thanks! |
Had this error with div data-role="navbar" containing empty ul list (i.e. no li's) inserted check for 0 children in $.fn.grid at 5556 (1.3.0-rc.1) if ( $kids.length == 0 ) seemed to fix the problem. |
Closing as duplicate of #6337. |
When sending form, page stuck in transaction and raise error in console:
Uncaught Error: Syntax error, unrecognized expression: :nth-child jquery-1.8.2.min.js:2
The text was updated successfully, but these errors were encountered: