• function

Make a library's nodelist.



  1. element {String | Element | NodeList}

    The selector, HTML element, or nodelist to pass to the underlying library.



The nodelist as constructed by the underlying library.

can.$(element) returns the the underlying library's NodeList. It can be passed a css selector, a HTMLElement or an array of HTMLElements.

The following lists how the NodeList is created by each library:

  • jQuery jQuery( HTMLElement )
  • Zepto Zepto( HTMLElement )
  • Dojo new dojo.NodeList( HTMLElement )
  • Mootools $$( HTMLElement )
  • YUI Y.all(selector) or Y.NodeList