Opened 5 years ago

Last modified 23 months ago

#18503 new defect

Selector engine css3 breaks results from query prevAll

Reported by: clong42 Owned by: Kris Zyp
Priority: undecided Milestone: 1.14
Component: Query Version: 1.10.4
Keywords: Cc:
Blocked By: Blocking:

Description

If the css3 selector engine is being used (for example, when async is true), then results from query(...).prevAll(...) is in the same order as the DOM, not the reverse like it is supposed to be.

If prevAll has no arguments, the result is correct, but even a simple selector, like 'span', will break it.

I made a jsfiddle to demonstrate:

https://jsfiddle.net/acl3k/wtggy3pw/3/

A workaround is to set the selector engine to acme.

Change History (2)

comment:1 Changed 4 years ago by dylan

Milestone: tbd1.12

comment:2 Changed 23 months ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.