DOCTYPE compatibility fixes