Would this logic cause a file named "html" (with no extension) to get resolved to HTML since we're treatig it like ".html"?  Ideally, it seems like we should distinguish filenames from extensions more clearly...