Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#4640 closed defect (fixed)

Dojo.Query for direct children fails with >*

Reported by: guest Owned by: alex
Priority: high Milestone:
Component: Query Version: 0.9
Keywords: Cc: pwobrussell@…
Blocked By: Blocking:

Description

I am replacing prototype.js code with dojo. They had an immideateDescendants method, which returned all of the childNodes (all non whitespace nodes). I tried to do

dojo.query("> *", srcNode) and got an eval error in dojo. Doing > worked as expected.

Change History (4)

comment:1 Changed 12 years ago by Adam Peller

Owner: changed from anonymous to alex

comment:2 Changed 12 years ago by ptwobrussell

Cc: pwobrussell@… added

comment:3 Changed 12 years ago by alex

Resolution: fixed
Status: newclosed

(In [11174]) complete replacement for the tokenization strategy of the query engine. Moved from ad-hoc substring searching to an AST generation/consumption system. The query engine should be significantly more robust in the face of whitespace and funky formatting than before. Code size change should be minimal despite the large-scale change. Expanded tests and a first stab at inline docs for dojo.query. All unit tests pass on FF2, Safari3, and IE 6 and 7. Fixes #4365. Fixes #4640. Fixes #2423.

comment:4 Changed 10 years ago by bill

Component: CoreQuery
Note: See TracTickets for help on using tickets.