Don't use the DOM when we don't have to.