Update web-platform-tests to revision 91b1effe848fac6e73a203037fc333b0fff3174d

This commit is contained in:
WPT Sync Bot 2019-02-20 21:03:17 -05:00
parent 6bb98ad17a
commit 7680aab725
60 changed files with 1588 additions and 120 deletions

View file

@ -66,6 +66,11 @@ test(function() {
assert_equals(htmldoc.documentElement.namespaceURI, "http://www.w3.org/1999/xhtml");
}, "DOMParser parses HTML tag soup with no problems");
test(function() {
const doc = new DOMParser().parseFromString('<noembed>&lt;a&gt;</noembed>', 'text/html');
assert_equals(doc.querySelector('noembed').textContent, '&lt;a&gt;');
}, 'DOMParser should handle the content of <noembed> as raw text');
test(function() {
assert_throws(new TypeError(), function() {
new DOMParser().parseFromString("", "text/foo-this-is-invalid");