| OLD | NEW |
| 1 Testing document.registerElement() type extension behaviours through createEleme
nt(). | 1 Testing document.registerElement() type extension behaviours through createEleme
nt(). |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS document.registerElement("x-foo", { prototype: Object.create(HTMLDivElement
.prototype) }) threw exception InvalidStateError: Failed to execute 'registerEle
ment' on 'Document': Registration failed for type 'x-foo'. A type with that name
is already registered.. | 6 PASS document.registerElement("x-foo", { prototype: Object.create(HTMLDivElement
.prototype) }) threw exception InvalidStateError: Failed to execute 'registerEle
ment' on 'Document': Registration failed for type 'x-foo'. A type with that name
is already registered.. |
| 7 PASS fooNewed.outerHTML is "<x-foo></x-foo>" | 7 PASS fooNewed.outerHTML is "<x-foo></x-foo>" |
| 8 PASS fooNewed instanceof fooConstructor && fooNewed instanceof HTMLElement is tr
ue | 8 PASS fooNewed instanceof fooConstructor && fooNewed instanceof HTMLElement is tr
ue |
| 9 PASS fooNewed instanceof HTMLUnknownElement is false | 9 PASS fooNewed instanceof HTMLUnknownElement is false |
| 10 PASS barNewed.outerHTML is "<input is=\"x-bar\">" | 10 PASS barNewed.outerHTML is "<input is=\"x-bar\">" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 PASS divBarCreated instanceof HTMLDivElement is true | 41 PASS divBarCreated instanceof HTMLDivElement is true |
| 42 PASS fooBarCreated.outerHTML is "<x-foo is=\"x-bar\"></x-foo>" | 42 PASS fooBarCreated.outerHTML is "<x-foo is=\"x-bar\"></x-foo>" |
| 43 PASS fooBarCreated instanceof fooConstructor is true | 43 PASS fooBarCreated instanceof fooConstructor is true |
| 44 PASS barFooCreated.outerHTML is "<x-bar is=\"x-foo\"></x-bar>" | 44 PASS barFooCreated.outerHTML is "<x-bar is=\"x-foo\"></x-bar>" |
| 45 PASS barFooCreated instanceof HTMLUnknownElement is false | 45 PASS barFooCreated instanceof HTMLUnknownElement is false |
| 46 PASS barFooCreated instanceof HTMLElement is true | 46 PASS barFooCreated instanceof HTMLElement is true |
| 47 PASS fooCreatedNull.outerHTML is "<x-foo></x-foo>" | 47 PASS fooCreatedNull.outerHTML is "<x-foo></x-foo>" |
| 48 PASS fooCreatedNull instanceof fooConstructor is true | 48 PASS fooCreatedNull instanceof fooConstructor is true |
| 49 PASS fooCreatedEmpty.outerHTML is "<x-foo></x-foo>" | 49 PASS fooCreatedEmpty.outerHTML is "<x-foo></x-foo>" |
| 50 PASS fooCreatedEmpty instanceof fooConstructor is true | 50 PASS fooCreatedEmpty instanceof fooConstructor is true |
| 51 PASS document.createElement("@invalid", "x-bar") threw exception InvalidCharacte
rError: The string contains invalid characters.. | 51 PASS document.createElement("@invalid", "x-bar") threw exception InvalidCharacte
rError: Failed to execute 'createElement' on 'Document': '@invalid' is not a val
id element name.. |
| 52 PASS fooCreatedNS.outerHTML is "<x-foo></x-foo>" | 52 PASS fooCreatedNS.outerHTML is "<x-foo></x-foo>" |
| 53 PASS fooCreatedNS instanceof fooConstructor is true | 53 PASS fooCreatedNS instanceof fooConstructor is true |
| 54 PASS barCreatedNS.outerHTML is "<input is=\"x-bar\">" | 54 PASS barCreatedNS.outerHTML is "<input is=\"x-bar\">" |
| 55 PASS barCreatedNS instanceof barConstructor is true | 55 PASS barCreatedNS instanceof barConstructor is true |
| 56 PASS isFormControl(barCreatedNS) is true | 56 PASS isFormControl(barCreatedNS) is true |
| 57 PASS document.createElementNS("http://example.com/2013/no-such-namespace", "xml:
lang", "x-bar") threw exception NamespaceError: An attempt was made to create or
change an object in a way which is incorrect with regard to namespaces.. | 57 PASS document.createElementNS("http://example.com/2013/no-such-namespace", "xml:
lang", "x-bar") threw exception NamespaceError: Failed to execute 'createElement
NS' on 'Document': 'http://example.com/2013/no-such-namespace' is not a valid na
mespace for elements.. |
| 58 PASS fooParsed instanceof fooConstructor is true | 58 PASS fooParsed instanceof fooConstructor is true |
| 59 PASS barParsed instanceof barConstructor is true | 59 PASS barParsed instanceof barConstructor is true |
| 60 PASS isFormControl(barParsed) is true | 60 PASS isFormControl(barParsed) is true |
| 61 PASS divFooParsed instanceof fooConstructor is false | 61 PASS divFooParsed instanceof fooConstructor is false |
| 62 PASS divFooParsed instanceof HTMLDivElement is true | 62 PASS divFooParsed instanceof HTMLDivElement is true |
| 63 PASS namedBarParsed instanceof barConstructor is false | 63 PASS namedBarParsed instanceof barConstructor is false |
| 64 PASS namedBarParsed instanceof HTMLUnknownElement is false | 64 PASS namedBarParsed instanceof HTMLUnknownElement is false |
| 65 PASS namedBarParsed instanceof HTMLElement is true | 65 PASS namedBarParsed instanceof HTMLElement is true |
| 66 PASS divBarParsed instanceof barConstructor is false | 66 PASS divBarParsed instanceof barConstructor is false |
| 67 PASS divBarParsed instanceof HTMLDivElement is true | 67 PASS divBarParsed instanceof HTMLDivElement is true |
| 68 PASS successfullyParsed is true | 68 PASS successfullyParsed is true |
| 69 | 69 |
| 70 TEST COMPLETE | 70 TEST COMPLETE |
| 71 | 71 |
| OLD | NEW |