[dom] Fix history