E > F An F element that has an immediate parent of type E.
E:link
E:visited
E:active
E:hover
E:focus
E[foo] An E element with an attribute called foo.
E[foo="bar"] An E element with an attribute called foo that has a value of bar.
E[foo~="bar"] An E element which has an attribute called foo that has a list of values that are space separated
and one of which has a value of bar.
E[hreflang|="en"]
E:lang(fr)
E.warning
E#myId An E element with an id value of "myId"
S1, S2 The results are the union of two selectors.
Here are some sample patterns that crop up:
• "> *" – The immediate children of the root of the search tree.
NodeList itself is an array of DOM nodes. The NodeList object, in addition to being a JavaScript
list, has a number of methods added to it:
• at()
• concat()
• end()
• every()
• forEach(function(node)) – Execute a function for each node in the node list.
• indexOf()
• instantiate()
• lastIndexOf()
• map()
• on()
• slice()
• some()
• splice()
See also:
• Docs – dojo/query – 1.9
• sitepen - Dojo FAQ: Does dojo/query return elements in the same order as they appear in the DOM? - 2013-11-01
Page 144
Comentários a estes Manuais