Bug Tracker

Modify

Ticket #5397 (closed enhancement: invalid)

Opened 4 years ago

Last modified 4 years ago

How to use filtering when selecting nodes

Reported by: JeffMatthews Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

FYI, be careful of using any spacing to make code readable in your text editor. The spacing might affect processing.

Here is one that bothered me for about an hour, until I got lucky and just removed the space.

These two statements are not the same.

  1. $("#myid [value=1][name=2]")
  2. $("#myid [value=1] [name=2]")

The additional space causes the filter to not work.

Change History

comment:1 Changed 4 years ago by dmethvin

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

Yes, spaces are significant in CSS selectors.

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.