Opened 10 years ago

Closed 10 years ago

#10027 closed defect (duplicate)

dojo.query requires space around >

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

Description

Spaces around > are optional, so the first query should return results.

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

dojo.query('#inputForm>*') // returns [] <=== problem

document.querySelectorAll('#inputForm>*') // returns [div.myClass, textarea#inputTextArea, div.myClass]

dojo.query('#inputForm >*') // returns [div.myClass, textarea#inputTextArea, div.myClass]

dojo.query('form>*') // returns [div.myClass, textarea#inputTextArea, div.myClass]

Change History (1)

comment:1 Changed 10 years ago by dante

Resolution: duplicate
Status: newclosed

dup of #8358

Note: See TracTickets for help on using tickets.