Opened 12 years ago

Last modified 5 years ago

#10066 assigned defect

dojo.query("tag > :not(tag)") returns empty results

Reported by: bill Owned by: Kris Zyp
Priority: low Milestone: 1.15
Component: Query Version: 1.3.2
Keywords: reviewed Cc:
Blocked By: Blocking:


On dojo/tests/_base/query.html, from firebug:

dojo.query("div > :not(p)", dojo.byId("t4"))

This should find the nested div but it doesn't.

It returns an empty list. Similarly for "div > :not(div)" should find the <p> inside the <div> but it doesn't.

Change History (11)

comment:1 Changed 12 years ago by Les

I believe this is a dup of #8358

This returns results: [div#one.subDiv, div#two.subDiv]

dojo.query("div>:not(p)", dojo.byId("t4"))

comment:2 Changed 12 years ago by bill

Hmm, could be, although technically it's the opposite of that ticket, in this case selectors *with* spaces aren't parsed correctly.

comment:3 Changed 12 years ago by Les

I added a note to #8358. I think these two tickets are related.

comment:4 Changed 12 years ago by James Burke

After fixing #8358, this query still fails. I believe it is unrelated to the spaces issue that #8358 had. After the 8358 fix, both the "div>:not(p)" and "div > :not(p)" are normalized to the same string, so both will fail now.

comment:5 Changed 12 years ago by James Burke

Milestone: tbdfuture

comment:6 Changed 10 years ago by Chris Mitchell

Owner: changed from alex to dylan

please review/triage

comment:7 Changed 9 years ago by ben hockey

Keywords: needsreview added
Priority: highlow

comment:8 Changed 9 years ago by bill

Keywords: reviewed added; needsreview removed

Still fails in trunk (post 1.7).

comment:9 Changed 9 years ago by bill

Owner: changed from dylan to Kris Zyp
Status: newassigned

comment:10 Changed 6 years ago by dylan

Milestone: future1.12

comment:11 Changed 5 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.