Update web-platform-tests to revision 074719e3660000659cd074b8a59de69bd9b90cd7

This commit is contained in:
WPT Sync Bot 2020-01-29 11:32:50 +00:00
parent 7e4d0534c3
commit d2429e5077
4053 changed files with 160516 additions and 486 deletions

View file

@ -35,4 +35,16 @@ const xhtml_prologue = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
assert_equals(parsererrors.length, 1, 'expecting one parsererror');
}, document.title + ', ' + fragment);
});
[
'text/xml',
'application/xml',
'application/xhtml+xml',
'image/svg+xml'
].forEach(mimeType => {
test(() => {
const doc = (new DOMParser()).parseFromString('<span x:test="testing">1</span>', mimeType);
assert_equals(doc.contentType, mimeType);
}, `${mimeType} is preserved in the error document`);
})
</script>