Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#10025 closed defect (duplicate)

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

Reported by: Les Owned by: alex
Priority: high Milestone: tbd
Component: Query Version: 1.3.2
Keywords: dojo.query Cc:
Blocked By: Blocking:

Description

I tried this query in FF 3.5 and Chrome 4;

Go here: http://archive.dojotoolkit.org/nightly/dojotoolkit/dojo/tests/NodeList-manipulate.html

Try:

dojo.query('form>*:not(#inputTextArea)'); // returns []

jQuery('form>*:not(#inputTextArea)'); // returns [div.myClass, div.myClass]

document.querySelectorAll('form>*:not(#inputTextArea)'); // returns [div.myClass, div.myClass]

Change History (3)

comment:1 Changed 10 years ago by Les

This works correctly though:

dojo.query('form>*:not(.myClass)');  // returns [textarea#inputTextArea]

comment:2 Changed 10 years ago by James Burke

Resolution: duplicate
Status: newclosed

I believe this is the space problem. This works correctly:

dojo.query('form > *:not(#inputTextArea)')

So closing this as a dup of #8358

comment:3 Changed 10 years ago by bill

Summary: dojo.query returns empty resultsdojo.query("tag > :not(#id)") returns empty results
Note: See TracTickets for help on using tickets.