Bug 935276 - Correctly handle mixed-case closing tags.