[xml mode] Make tag names case-insensitive in html mode

Issue #2304