Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#5623 closed defect (invalid)

[testcase] dojo.query("*", "id") missing node "id"

Reported by: Rawld Gill Owned by: alex
Priority: high Milestone: 1.1
Component: Query Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description

[1] dojo.query("*", "id") does not include the node "id" ...yet... [2] dojo.query("#id", "id") includes the node "id"

So [1] queries the children of "id" while [2] queries the subtree "id". This seems like an error.

Attachments (1)

dojo.query.error.htm (635 bytes) - added by Rawld Gill 11 years ago.
demo of problem

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by Rawld Gill

Attachment: dojo.query.error.htm added

demo of problem

comment:1 Changed 11 years ago by bill

Owner: changed from anonymous to alex

comment:2 Changed 11 years ago by dylan

Milestone: 1.1
Summary: dojo.query("*", "id") missing node "id"[testcase] dojo.query("*", "id") missing node "id"

comment:3 Changed 11 years ago by dylan

Resolution: invalid
Status: newclosed

In reviewing the tests and documentation, this ticket is invalid:

root: String|DOMNode?
110 	                //              A node (or string ID of a node) to scope the search from. Optional.

Note that the node or string ID of a node defines a root to search within, but does not and should not include the root node itself.

comment:4 in reply to:  3 Changed 11 years ago by Rawld Gill

Replying to dylan:

In reviewing the tests and documentation, this ticket is invalid:

root: String|DOMNode?
110 	                //              A node (or string ID of a node) to scope the search from. Optional.

Note that the node or string ID of a node defines a root to search within, but does not and should not include the root node itself.

OK...that answers case [1], but then case [2] is wrong. What am I missing?

comment:5 Changed 10 years ago by bill

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