Currently we set text properties but never remove them, resulting in modified code incorrectly being considered XHP.