Update web-platform-tests to revision 281f62f2d8ffe72128d848851ac1e8d823f608f6

This commit is contained in:
WPT Sync Bot 2020-09-23 08:21:22 +00:00
parent f4a5709e37
commit 2999a91526
292 changed files with 2232 additions and 742 deletions

View file

@ -15,13 +15,13 @@ test(function() {
const wrapper = document.createElement('div');
const html = `<${c}><${e}></${c}`
wrapper.innerHTML = html;
assert_false(wrapper.innerHTML == html, "The inner HTML should get mutated");
assert_not_equals(wrapper.innerHTML, html, "The inner HTML should get mutated");
const tagname = e[0]=='/' ? e.substr(1) : e;
const element = wrapper.getElementsByTagName(tagname)[0];
assert_true(element !== undefined,`Unable to locate the ${e} node in ${c}`)
assert_not_equals(element, undefined,`Unable to locate the ${e} node in ${c}`)
const parent = element.parentNode
assert_true(element.parentNode === wrapper,`The ${e} tag did not exit the ${c}`)
assert_equals(element.parentNode, wrapper,`The ${e} tag did not exit the ${c}`)
});
});
}, "HTML namespace nodes should exit foreign contexts");