mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Update web-platform-tests to revision 68a256f49be380ca4add535ce8ece9de28820e6b
This commit is contained in:
parent
e54935c25a
commit
cd5bf022bd
178 changed files with 6082 additions and 795 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue