Update web-platform-tests to revision 68a256f49be380ca4add535ce8ece9de28820e6b

This commit is contained in:
WPT Sync Bot 2018-02-04 20:08:48 -05:00
parent e54935c25a
commit cd5bf022bd
178 changed files with 6082 additions and 795 deletions

View file

@ -342,6 +342,18 @@ test(function () {
}, 'document.createElement must report an exception thrown by a custom element constructor');
test(() => {
class MyElement extends HTMLDivElement {}
// createElement with unknown 'is' should not throw.
// https://github.com/w3c/webcomponents/issues/608
let div = document.createElement('div', { is: 'my-div' });
assert_false(div instanceof MyElement);
customElements.define('my-div', MyElement, { extends: 'div' });
document.body.appendChild(div);
assert_true(div instanceof MyElement, 'Undefined element is upgraded on connecting to a document');
}, 'document.createElement with unknown "is" value should create "undefined" state element');
</script>
</body>
</html>