This completes 1c6f9df80e where a lot of other functions were fixed (by conforming to startHTML and endHTML)
1c6f9df80e