Add a test. This test could have caught the DOMParser issue since PhantomJS is WebKit based.