mirror of
https://github.com/servo/servo.git
synced 2025-09-02 02:58:22 +01:00
Update web-platform-tests to revision 6d85a3b422cab97d032ad3db47cb741ca364185f
This commit is contained in:
parent
cd663ea332
commit
b524b7c279
37 changed files with 1446 additions and 178 deletions
|
@ -23,6 +23,14 @@ test(() => {
|
|||
assert_false(element instanceof MyElement2);
|
||||
}, 'autonomous: document.createElementNS should check namespaces.');
|
||||
|
||||
test(() => {
|
||||
const xhtmlNS = 'http://www.w3.org/1999/xhtml';
|
||||
assert_false(document.createElementNS(xhtmlNS, 'x-foo') instanceof HTMLUnknownElement);
|
||||
assert_false(document.createElementNS(xhtmlNS, 'x-foo', {}) instanceof HTMLUnknownElement);
|
||||
assert_false((new Document()).createElementNS(xhtmlNS, 'x-foo') instanceof HTMLUnknownElement);
|
||||
assert_false((new Document()).createElementNS(xhtmlNS, 'x-foo', {}) instanceof HTMLUnknownElement);
|
||||
}, 'autonomous: document.createElementNS should not create HTMLUnknownElement for a valid custom element name');
|
||||
|
||||
test(() => {
|
||||
class MyBuiltinElement extends HTMLElement {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue