Added InvalidMarkupError to replace removed exception