new method grabAttributesFrom() to read attributes from all matching DOM elements