DOMParser should pass the correct contentType (fixes #1741)