dojo/_base/NodeList extends NodeList with legacy API’s for backwards compatability.

Those features are: connect(), coords(), blur(), focus(), change(), click(), error(), keydown(), keypress(), keyup(), load(), mousedown(), mouseenter(), mouseleave(), mousemove(), mouseout(), mouseover(), mouseup(), and submit() methods.


As with the rest of dojo/_base modules, if you are running the Dojo loader in legacy mode (async: false) this module is automatically loaded. Even if it is automatically loaded, you should require it in to have access to its features:

require(["dojo/_base/NodeList"], function(){
  // Instances of NodeList will contain legacy features

As stated above, these are legacy features and generally shouldn’t be used for new development. Utilising dojo/query and the NodeList extension modules are more appropriate. See:

Table of Contents

Error in the documentation? Can’t find what you are looking for? Let us know!