Ticket #6418 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

dojo.query: support of negative a/b in :nth-child(an+b)

Reported by: liucougar Owned by: alex
Priority: normal Milestone: 1.2
Component: Core Version: 1.1.0
Severity: normal Keywords:
Cc:

Description (last modified by liucougar) (diff)

current :nth-child selector in dojo.query does not support negative a or b in form of an+b

dojo.query can not handle contains("bar") either, because it does not remove quotes around bar

in addition, when dojo.query calls dojo.byId, it does not pass in the correct document para (the second argument to dojo.byId)

the attached patch fixes all these issues (also updated test file)

Attachments

6418.patch (4.4 kB) - added by liucougar 8 months ago.

Change History

Changed 8 months ago by liucougar

  • description modified (diff)
  • summary changed from dojo.query: support of negative a/b in nth-child(an+b) to dojo.query: support of negative a/b in :nth-child(an+b)

Changed 8 months ago by liucougar

Changed 8 months ago by dylan

  • owner changed from anonymous to alex

Changed 8 months ago by alex

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

(In [13387]) merging great patch from Liu Cougar for correctly handling the "3n-3" style of CSS selectors and fixing my broken logic on earlier selectors like "0n+1". Fixes #6418. !strict

Note: See TracTickets for help on using tickets.