dojo.query: support of negative a/b in :nth-child(an+b)
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)
Change History (5)
Description: |
modified (diff)
|
Summary: |
dojo.query: support of negative a/b in nth-child(an+b) →
dojo.query: support of negative a/b in :nth-child(an+b)
|
Owner: |
changed from anonymous to alex
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
(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