Fix typos in DOM utils