Visiting All the Elements in a DOM Document