<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
'use strict';
test(() => {
const parser = new DOMParser();
const input = '<?xml version="1.1" encoding="UTF-16"?>';
parser.parseFromString(input, 'application/xhtml+xml');
}, 'Parsing XML w/ invalid ver should not crash');
</script>