Implement indexer and support foreach for HtmlCollection.