Simplified defining the HTMLCollection methods.