Selectors a la jQuery:
Are available on Document and in all elements; work similarly to jQuery, and are well supported by the most modern browsers. In IE, by the way, are available from version 8.
The parameter string must contain one or more comma-separated CSS selectors, although in my more complex selector experiments (with pseudo-selectors) failed.
// captura apenas a PRIMEIRA tag <a> da página:
var a = document.querySelector("a"); // retorna apenas o elemento encontrado (ou null)
// captura, dentro de 'a', TODOS (All) os elementos com classe "classeA" ou "classeB":
var b = a.querySelectorAll(".classeA, .classeB"); // retorna um array de filhos
Array of child elements
They are available in all child elements; they contain all child elements (other than plain text).
var c = b.children[0]; // exemplo de uso
Node array (text/element) children
Are available in all elements, and contains all child elements (textual or not).
var d = c.childNodes[1]; // exemplo de uso
Thank you very much, it will be extremely useful the mentioned querySelector. Valew!
– Douglas dos Santos