XPath, evaluate

var r = document.evaluate("//div[@class='section']", document, null, 7, null)
for (var i = 0; i < r.snapshotLength; i++) {
	r.snapshotItem(i);
}