Revert "XHTML Compliance"

This commit broke schedules edit, it should fix #3555.

This reverts commit e1002cd2724869eabdfe1f9258d4522d572722e4.