Ticket #5080 (closed defect: fixed)

Opened 13 months ago

Last modified 10 months ago

expose css selector definition on dojo.query

Reported by: dmachi Owned by: alex
Priority: normal Milestone: 1.1
Component: General Version: 0.9
Severity: normal Keywords:
Cc:

Description

Right now it is not possible to implement custom css selectors (admittedly non standard). The code is hidden in dojo.query, exposing it would allow external code to modify and add these things as necessary while not sacrificing performance for those who don't.

Change History

Changed 10 months ago by alex

  • status changed from new to closed
  • resolution set to fixed

custom pseudo-selectors are exposed via dojo.query.pseudos. This is a map of pseudo-selector names to selector match functions, and this mapping can be extended. Exposing other query operators is not feasible since the burden of implementing the selector twice (once for xpath, once for DOM) seems too high.

Note: See TracTickets for help on using tickets.