Bug Tracker

Modify

Ticket #6019 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

(parent > child) selector not working correctly

Reported by: simonjs Owned by: john
Priority: minor Milestone: 1.4.2
Component: selector Version: 1.4.1
Keywords: .after(), parent, child Cc:
Blocking: Blocked by:

Description

In certain circumstances the (parent > child) selector doesn't seem to be functioning correctly.

For example:

$('#footer ul > li').after(' | ');

Firebug reports an error: "uncaught exception: Syntax error, unrecognized expression: | "

however this is fine:

$('#footer ul li').after(' | ');

but obviously the rule is applied to all child list-items too, which is not the desired result.

Attachments

testpage_6019.htm Download (575 bytes) - added by simonjs 3 years ago.
Error Test page

Change History

comment:1 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to worksforme

I can't duplicate this - do you have a demo page?

Changed 3 years ago by simonjs

Error Test page

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.