Opened 5 years ago

Last modified 2 years ago

#18128 assigned defect

query.NodeList() is not a function when !css3 is specified

Reported by: ChristianHeinrich Owned by: dylan
Priority: undecided Milestone: 1.15
Component: Query Version: 1.10.0
Keywords: Cc:
Blocked By: Blocking:

Description

Apparently something is going wrong - if "!css3" is left out, everything works as expected.

This code breaks, resulting in "TypeError?: query.NodeList? is not a function"

require(["dojo/query!css3"], function(query) {
   console.log(query.NodeList());
});

but this works just fine:

require(["dojo/query"], function(query) {
   console.log(query.NodeList());
});

I created a jsfiddle:

http://jsfiddle.net/564ky/

Note that "query.NodeList?()" is explicitly mentioned in the docs:

http://dojotoolkit.org/reference-guide/1.10/dojo/NodeList.html#dojo-nodelist

However, dojo.NodeList?() still works in both cases. Is dojo.NodeList?() recommended? I only found this when looking at the source code...

Change History (2)

comment:1 Changed 3 years ago by dylan

Milestone: tbd1.12
Owner: set to dylan
Status: newassigned

Confirmed, will investigate for Dojo 1.12.

comment:2 Changed 2 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.