fixes bug 806633 - Inconsistent HTML tag handling.