make doctype tests pass
added preserve engine support