Clicking the document will use Dom's getElementsByClassName method to collect all of the elements with the class bar applied.
getElementsByClassName
bar
p class="bar"