15.5custom-elements/registries/
2,488 / 2,492 WPT subtests passing
- Failed
- 4
- Timed out
- 0
- Not run
- 0
- Test files
- 44
- Blocking files
- 0
Chrome 2,449 / 2,492 WPT subtests passing on the same files, 1 blocking
Tests
44 test files hereEach test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
Construct.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- A constructor with only a scoped custom element registry definition should fail upon construction
- A constructor uses the global registry to create an element
- A constructor creating an element from another registry before or after super call should work
CustomElementRegistry-define.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Create a CustomElementRegistry not identically equal to window.customElements
- Defining an element in the global registry does not add a definition to a scoped CustomElementRegistry
- Defining an element in a scoped global registry does not add a definition to the global registry
CustomElementRegistry-initialize.html 13 / 13 passingChrome 13 / 130 failedClean
13 passing subtests
- initialize throws when the registry scoped is false and the root is the document.
- initialize throws when the registry scoped is false and the root document already has another registry
- initialize is a function on both global and scoped CustomElementRegistry
- initialize sets element.customElementRegistry to the global registry
- initialize does not set the registry of nested shadow tree to the global registry
- initialize sets element.customElementRegistry to a scoped registry
- initialize does not set descendants whose customElementRegistry already uses a different registry
- initialize does not set the registry of nested shadow tree to a scoped registry
- initialize sets element.customElementRegistry permantently
- initialize is no-op on a subtree with a non-null registry
- initialize works on Document
- initialize works on DocumentFragment
- initialize sets registry on shadow root descendants with no registry
CustomElementRegistry-multi-register.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Same constructor can be registered to different registries
- Non-global registries still reject duplicate registrations of the same constructor
CustomElementRegistry-upgrade.html 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- upgrade is a function on both global and scoped CustomElementRegistry
- upgrade is a no-op when called on a shadow root with no association
- upgrade is a no-op when called on an element associated with a different registry
- upgrade should upgrade a candidate element when called on a shadow root with an association
- upgrade should not upgrade a candidate element not associated with a registry
Document-createElement.html 10 / 10 passingChrome 10 / 100 failedClean
10 passing subtests
- createElement should use the global registry by default
- createElement should use the specified scoped registry
- createElement should create a builtin element regardless of a custom element registry specified
- createElement should use the specified global registry
- createElement should create an upgrade candidate when there is no matching definition in the specified registry
- document.createElement should create a builtin element with null registry if customElementRegistry is set to null
- document.createElement should create a custom element candidate with null registry if customElementRegistry is set to null
- document.createElement should create a custom element candidate with null registry if customElementRegistry is set to null even if there is a custom element of the same name in the glboal registry
- createElement should create an upgrade candidate and the candidate should be upgraded when the element is defined
- createElement on a non-HTML document should still handle registries correctly
Document-createElementNS.html 10 / 10 passingChrome 10 / 100 failedClean
10 passing subtests
- createElementNS should use the global registry by default
- createElementNS should use the specified scoped registry
- createElementNS should create a builtin element regardless of a custom element registry specified
- createElementNS should use the specified global registry
- createElementNS should create an upgrade candidate when there is no matching definition in the specified registry
- document.createElement should create a builtin element with null registry if customElement is set to null
- document.createElement should create a custom element candidate with null registry if customElement is set to null
- document.createElement should create a defined custom element with null registry if customElement is set to null
- createElementNS should create an upgrade candidate and the candidate should be upgraded when the element is defined
- createElementNS on a non-HTML document should still handle registries correctly
Document-customElementRegistry.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- customElementRegistry on a document should return window.customElements by default
- customElementRegistry on a document without a browsing context should return null
- customElementRegistry on a document of a connected iframe should return contentWindow.customElements
- customElementRegistry on a document of a disconnected iframe should return contentWindow.customElements
Document-importNode-cross-document.window.js 15 / 15 passingChrome 15 / 150 failedClean
15 passing subtests
- Cloning with global registry
- Cloning with explicit global registry
- Cloning with scoped registry
- Cloning including shadow tree with global registry
- Cloning including shadow tree with explicit global registry
- Cloning including shadow tree with scoped registry
- Cloning with global registry (null registry target)
- Cloning with explicit global registry (null registry target)
- Cloning with scoped registry (null registry target)
- Cloning including shadow tree with global registry (null registry target)
- Cloning including shadow tree with explicit global registry (null registry target)
- Cloning including shadow tree with scoped registry (null registry target)
- Cloning with global registry (scoped registry target)
- Cloning including shadow tree with global registry (scoped registry target)
- Cloning including shadow tree with scoped registry (scoped registry target)
Document-importNode.html 20 / 20 passingChrome 20 / 200 failedClean
20 passing subtests
- importNode should clone using the global regsitry by default
- importNode should clone using target's registry if non-null
- importNode should clone using the specified registry if target's registry is null
- importNode should preserve null-ness of custom element registry
- importNode should clone a shadow host with a declarative shadow DOM using the global registry by default
- importNode should clone a shadow host with a declarative shadow DOM using a specified scoped registry
- importNode should clone using target's registry if non-null, including when it's not the global registry
- importNode should clone a template content using the global registry by default
- importNode should clone a template content using a specified scoped registry
- importNode should clone a template content with a nested template element using a scoped registry
- importNode: don't pass options argument
- importNode: pass options argument with value false
- importNode: pass options argument with value true
- importNode: pass options argument with value undefined
- importNode: pass options argument with value { }
- importNode: pass options argument with value { selfOnly: false }
- importNode: pass options argument with value { selfOnly: true }
- importNode: pass options argument with value { customElementRegistry: scopedRegistry }
- importNode: pass options argument with value { customElementRegistry: null }
- importNode should use the provided fallback registry for null-registry descendants nested under non-null-registry ancestors
Element-attachShadow-disabled-shadow.window.js 7 / 7 passingChrome 7 / 70 failedClean
7 passing subtests
- attachShadow() throws when the element's scoped registry disables shadow for its name
- attachShadow() throws when the element's scoped registry disables shadow for its name, after the element is appended to the document
- attachShadow() ignores the global registry for an element with a scoped registry
- attachShadow() throws when the scoped registry of the element's shadow tree disables shadow for its name
- attachShadow() ignores the global registry for an element in a shadow tree with a scoped registry
- attachShadow() throws when the global registry disables shadow for the name of an element that keeps it in a shadow tree with a scoped registry
- attachShadow() ignores the global registry for an element with a null registry
Element-customElementRegistry-exceptions.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- customElementRegistry on a failed custom element created by calling createElement on CustomElementRegistry should return the registry
- customElementRegistry on a failed custom element created by setting innerHTML should return the associated scoped registry
- customElementRegistry on a failed custom element created by parser should return the specified custom regsitry
Element-customElementRegistry.html 11 / 11 passingChrome 11 / 110 failedClean
11 passing subtests
- customElementRegistry on a newly constrcuted element should return window.customElements by default
- customElementRegistry on an element inside a declarative shadow DOM should return window.customElements by default
- customElementRegistry on an element inside a declarative shadow DOM with shadowrootcustomelementregistry should return null
- customElementRegistry on a clone of a declarative shadow tree with shadowrootcustomelementregistry should return null
- customElementRegistry on a clone of a declarative shadow tree with shadowrootcustomelementregistry should return the global registry after getting inserted into a document
- customElementRegistry on an element inside a declarative shadow DOM with shadowrootcustomelementregistry should return the scoped registry after calling initialize
- customElementRegistry on a builtin element created by calling createElement on CustomElementRegistry should return the registry
- customElementRegistry on an upgarde candidate created by calling createElement on CustomElementRegistry should return the registry
- customElementRegistry on an unknown element created by calling createElement on CustomElementRegistry should return the registry
- customElementRegistry on a defined custom element created by calling createElement on CustomElementRegistry should return the registry
- customElementRegistry inside a custom element constructor should return the correct registry
Element-innerHTML.html 11 / 12 passingChrome 12 / 121 failedWith failures
- ¶
FAILinsertAdjacentHTML should use the element's registry even when the registry is null
assert_equals: expected null but got object "[object CustomElementRegistry]"
11 passing subtests
- innerHTML on a disconnected element should use the scoped registry it was created with
- nested descendants in innerHTML on a disconnected element should use the scoped registry the element was created with
- innerHTML on a disconnected element should use the scoped registry it was created with when parsing a simple HTML
- innerHTML on an inserted element should continue to use the scoped registry it was created with
- nested descendants in innerHTML should use the null registry when the container element has null registry
- createContextualFragment on a range inside a template should use null registry even when the template has a scoped registry
- innerHTML on a template with a scoped registry should use the scoped registry of the document
- createContextualFragment on a range inside an element with scoped registry should use the scoped registry of the element
- insertAdjacentHTML with beforebegin should use the containing scope's registry
- insertAdjacentHTML with afterend should use the containing scope's registry
- outerHTML setter should use the parent scope's registry, not the replaced element's
ShadowRoot-init-customElementRegistry.html 12 / 12 passingChrome 12 / 120 failedClean
12 passing subtests
- A newly attached disconnected ShadowRoot should use the global registry by default
- A newly attached connected ShadowRoot should use the global registry by default
- A newly attached ShadowRoot should use the global registry by default even if the host uses a custom registry
- A newly attached ShadowRoot should use the global registry by default even if the host is within another shadow tree that uses a custom registry
- A newly attached disconnected ShadowRoot should use the scoped registry if explicitly specified in attachShadow
- A newly attached connected ShadowRoot should use the scoped registry if explicitly specified in attachShadow
- attachShadow() should use null registry when customElementRegistry is null (host uses global registry)
- attachShadow() should use null registry when customElementRegistry is null (host uses custom registry)
- attchShadow on a builtin element with null customElementRegistry should create a ShadowRoot with null registry
- attchShadow on a custom elememnt candidate with null customElementRegistry should create a ShadowRoot with null registry
- attchShadow on a custom elememnt with null customElementRegistry should create a ShadowRoot with null registry
- attachShadow() should use the null registry when the shadow host uses null registry and customElementRegistry is null
ShadowRoot-init-declarative.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Custom element inside 'shadowrootcustomelementregistry' declarative shadow root should use document's registry as attachShadow default registry
- Built-in element inside 'shadowrootcustomelementregistry' declarative shadow root should use document's registry as attachShadow default registry
- Built-in element inside 'shadowrootcustomelementregistry' shadow root parsed via setHTMLUnsafe should use null registry
ShadowRoot-innerHTML.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- innerHTML on a shadow root should use the scoped registry
- innerHTML on a connected shadow root should use the associated scoped registry
- innerHTML on a connected shadow root should not upgrade a custom element inside a template element
- innerHTML on a connected shadow root should be able to create an unknown element
adoption-before-upgrade.window.js 3 / 5 passingChrome 3 / 52 failedWith failures
- ¶
FAILUpgrade after adoption with global registry
assert_equals: reported exceptions expected 1 but got 0
- ¶
FAILUpgrade after adoption with global registry (customElements of target not accessed before)
assert_equals: reported exceptions expected 1 but got 0
3 passing subtests
- Upgrade after adoption with global registry (null registry target)
- Upgrade after adoption with global registry (template contents target)
- Upgrade after adoption with global registry (scoped registry target)
adoption-null-registry-shadow-root.window.js 6 / 6 passingChrome 5 / 60 failedClean
6 passing subtests
- Shadow root with a null registry adopted into a document with a scoped registry
- Shadow root attached in a document with a null registry, adopted into a document with a scoped registry
- Shadow root adopted into a document with a null registry and back
- Shadow root cloned into a document with a null registry, then adopted
- initialize() on a shadow root attached in a document with a null registry
- initialize() on a shadow root adopted into a document with a null registry
adoption.window.js 36 / 36 passingChrome 36 / 360 failedClean
36 passing subtests
- Adoption with global registry
- Adoption with explicit global registry
- Adoption with scoped registry
- Adoption with global registry into a scoped registry
- Adoption with explicit global registry into a scoped registry
- Adoption with scoped registry into a scoped registry
- Adoption including shadow root with global registry
- Adoption including shadow root with explicit global registry
- Adoption including shadow root with scoped registry
- Adoption including shadow root with global registry into a scoped registry
- Adoption including shadow root with explicit global registry into a scoped registry
- Adoption including shadow root with scoped registry into a scoped registry
- Adoption with global registry (null registry target)
- Adoption with explicit global registry (null registry target)
- Adoption with scoped registry (null registry target)
- Adoption with global registry into a scoped registry (null registry target)
- Adoption with explicit global registry into a scoped registry (null registry target)
- Adoption with scoped registry into a scoped registry (null registry target)
- Adoption including shadow root with global registry (null registry target)
- Adoption including shadow root with explicit global registry (null registry target)
- Adoption including shadow root with scoped registry (null registry target)
- Adoption including shadow root with global registry into a scoped registry (null registry target)
- Adoption including shadow root with explicit global registry into a scoped registry (null registry target)
- Adoption including shadow root with scoped registry into a scoped registry (null registry target)
- Adoption with global registry (scoped registry target)
- Adoption with explicit global registry (scoped registry target)
- Adoption with scoped registry (scoped registry target)
- Adoption with global registry into a scoped registry (scoped registry target)
- Adoption with explicit global registry into a scoped registry (scoped registry target)
- Adoption with scoped registry into a scoped registry (scoped registry target)
- Adoption including shadow root with global registry (scoped registry target)
- Adoption including shadow root with explicit global registry (scoped registry target)
- Adoption including shadow root with scoped registry (scoped registry target)
- Adoption including shadow root with global registry into a scoped registry (scoped registry target)
- Adoption including shadow root with explicit global registry into a scoped registry (scoped registry target)
- Adoption including shadow root with scoped registry into a scoped registry (scoped registry target)
constructor-direct-call-fallback-registry.window.js 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Direct construction of a global-only element after super() during a scoped upgrade
- Direct construction of a global-only element before super() during a scoped upgrade
constructor-from-another-window.window.js 3 / 3 passingChrome 1 / 30 failedClean
3 passing subtests
- Upgrade with another window's global registry and a constructor from this window
- Upgrade with a scoped registry and a constructor from another window
- Constructing directly uses the registry of the HTMLElement constructor's window
constructor-reentry-createElement.window.js 4 / 4 passingChrome 2 / 40 failedClean
4 passing subtests
- Re-entry via createElement with a different registry after super()
- Re-entry via createElement with a different registry before super()
- Direct construction of a global-only element after super() during a scoped createElement construction
- Direct construction of a global-only element before super() during a scoped createElement construction
constructor-reentry-with-different-definition.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Re-entry via upgrade before calling super()
- Re-entry via upgrade after calling super()
- Re-entry via direct constructor call before calling super()
- Re-entry via direct constructor call after calling super()
define-customized-builtins.html 15 / 15 passingChrome 15 / 150 failedClean
15 passing subtests
- If extends is a-, should throw a NotSupportedError
- If extends is a-a, should throw a NotSupportedError
- If extends is aa-, should throw a NotSupportedError
- If extends is aa-a, should throw a NotSupportedError
- If extends is a-.-_, should throw a NotSupportedError
- If extends is a-0123456789, should throw a NotSupportedError
- If extends is a-漢字, should throw a NotSupportedError
- If extends is a-𠀋, should throw a NotSupportedError
- If extends is bgsound, should throw a NotSupportedError
- If extends is blink, should throw a NotSupportedError
- If extends is isindex, should throw a NotSupportedError
- If extends is multicol, should throw a NotSupportedError
- If extends is nextid, should throw a NotSupportedError
- If extends is spacer, should throw a NotSupportedError
- If extends is elementnametobeunknownelement, should throw a NotSupportedError
define.html 70 / 70 passingChrome 70 / 700 failedClean
70 passing subtests
- "window.customElements.define" should exists
- If no arguments, should throw a TypeError
- If one argument, should throw a TypeError
- If constructor is undefined, should throw a TypeError
- If constructor is null, should throw a TypeError
- If constructor is object, should throw a TypeError
- If constructor is string, should throw a TypeError
- If constructor is arrow function, should throw a TypeError
- If constructor is method, should throw a TypeError
- Element names: defining an element named a- should succeed
- Element names: defining an element named a-a should succeed
- Element names: defining an element named aa- should succeed
- Element names: defining an element named aa-a should succeed
- Element names: defining an element named a-.-_ should succeed
- Element names: defining an element named a-0123456789 should succeed
- Element names: defining an element named a-漢字 should succeed
- Element names: defining an element named a-𠀋 should succeed
- Element names: defining an element named a-a× should succeed
- Element names: defining an element named a-a should succeed
- Element names: defining an element named a-a should succeed
- Element names: defining an element named undefined should throw a SyntaxError
- Element names: defining an element named null should throw a SyntaxError
- Element names: defining an element named should throw a SyntaxError
- Element names: defining an element named - should throw a SyntaxError
- Element names: defining an element named a should throw a SyntaxError
- Element names: defining an element named input should throw a SyntaxError
- Element names: defining an element named mycustomelement should throw a SyntaxError
- Element names: defining an element named A should throw a SyntaxError
- Element names: defining an element named A- should throw a SyntaxError
- Element names: defining an element named 0- should throw a SyntaxError
- Element names: defining an element named a-A should throw a SyntaxError
- Element names: defining an element named a-Z should throw a SyntaxError
- Element names: defining an element named A-a should throw a SyntaxError
- Element names: defining an element named annotation-xml should throw a SyntaxError
- Element names: defining an element named color-profile should throw a SyntaxError
- Element names: defining an element named font-face should throw a SyntaxError
- Element names: defining an element named font-face-src should throw a SyntaxError
- Element names: defining an element named font-face-uri should throw a SyntaxError
- Element names: defining an element named font-face-format should throw a SyntaxError
- Element names: defining an element named font-face-name should throw a SyntaxError
- Element names: defining an element named missing-glyph should throw a SyntaxError
- If the name is already defined, should throw a NotSupportedError
- If the constructor is already defined, should throw a NotSupportedError
- If constructor.prototype throws, should rethrow
- If Type(constructor.prototype) is undefined, should throw a TypeError
- If Type(constructor.prototype) is string, should throw a TypeError
- If constructor.prototype.connectedCallback throws, should rethrow
- If constructor.prototype.connectedCallback is undefined, should succeed
- If constructor.prototype.connectedCallback is function, should succeed
- If constructor.prototype.connectedCallback is null, should throw a TypeError
- If constructor.prototype.connectedCallback is object, should throw a TypeError
- If constructor.prototype.connectedCallback is integer, should throw a TypeError
- If constructor.prototype.disconnectedCallback throws, should rethrow
- If constructor.prototype.disconnectedCallback is undefined, should succeed
- If constructor.prototype.disconnectedCallback is function, should succeed
- If constructor.prototype.disconnectedCallback is null, should throw a TypeError
- If constructor.prototype.disconnectedCallback is object, should throw a TypeError
- If constructor.prototype.disconnectedCallback is integer, should throw a TypeError
- If constructor.prototype.adoptedCallback throws, should rethrow
- If constructor.prototype.adoptedCallback is undefined, should succeed
- If constructor.prototype.adoptedCallback is function, should succeed
- If constructor.prototype.adoptedCallback is null, should throw a TypeError
- If constructor.prototype.adoptedCallback is object, should throw a TypeError
- If constructor.prototype.adoptedCallback is integer, should throw a TypeError
- If constructor.prototype.attributeChangedCallback throws, should rethrow
- If constructor.prototype.attributeChangedCallback is undefined, should succeed
- If constructor.prototype.attributeChangedCallback is function, should succeed
- If constructor.prototype.attributeChangedCallback is null, should throw a TypeError
- If constructor.prototype.attributeChangedCallback is object, should throw a TypeError
- If constructor.prototype.attributeChangedCallback is integer, should throw a TypeError
element-mutation-null-registry-removal.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- An element's null customElementRegistry should not mutate after removal from a declarative shadow root with shadowrootcustomelementregistry.
element-mutation.html 15 / 15 passingChrome 15 / 150 failedClean
15 passing subtests
- An element with global registry should not change its registry when run append into a shadow tree with scoped registry.
- An element with scoped registry should not change its registry when run append out of the shadow tree.
- An element with scoped registry should not change its registry when run append into another shadow tree with different scoped registry.
- A freshly created element should preserve global registry after append into and removal from a scoped shadow root.
- A freshly created element should preserve global registry when run append between scoped shadow roots.
- An element with global registry should not change its registry when run appendChild into a shadow tree with scoped registry.
- An element with scoped registry should not change its registry when run appendChild out of the shadow tree.
- An element with scoped registry should not change its registry when run appendChild into another shadow tree with different scoped registry.
- A freshly created element should preserve global registry after appendChild into and removal from a scoped shadow root.
- A freshly created element should preserve global registry when run appendChild between scoped shadow roots.
- An element with global registry should not change its registry when run prepend into a shadow tree with scoped registry.
- An element with scoped registry should not change its registry when run prepend out of the shadow tree.
- An element with scoped registry should not change its registry when run prepend into another shadow tree with different scoped registry.
- A freshly created element should preserve global registry after prepend into and removal from a scoped shadow root.
- A freshly created element should preserve global registry when run prepend between scoped shadow roots.
global-registry-access-timing.window.js 16 / 16 passingChrome 10 / 160 failedClean
16 passing subtests
- Shadow root attached before customElements is accessed
- Declarative shadow root attached before customElements is accessed
- Shadow root cloned before customElements is accessed
- Shadow root imported into a document before its customElements is accessed
- Template contents imported before customElements is accessed
- Element appended to a shadow root with a null registry before customElements is accessed
- Shadow root attached after customElements is accessed
- Declarative shadow root attached after customElements is accessed
- Shadow root cloned after customElements is accessed
- Shadow root imported into a document after its customElements is accessed
- Template contents imported after customElements is accessed
- Element appended to a shadow root with a null registry after customElements is accessed
- Shadow root adopted before either document's customElements is accessed
- Shadow root adopted after only the old document's customElements is accessed
- Shadow root adopted after only the new document's customElements is accessed
- Shadow root adopted after both documents' customElements are accessed
global.window.js 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- initialize() of global registry should throw for nodes from another document
- createElement() should throw with global registry from another document
- createElementNS() should throw with global registry from another document
- attachShadow() should throw with global registry from another document
- importNode() should throw with global registry from another document
initial-about-blank.window.js 4 / 4 passingChrome 1 / 40 failedClean
4 passing subtests
- Each navigable document has its own registry
- The initial about:blank document keeps its registry when its window is reused
- define() on the initial about:blank document's registry after its window is reused upgrades nothing
- A removed iframe's window keeps its document's registry after garbage collection
per-document.html 4 / 4 passingChrome 3 / 40 failedClean
4 passing subtests
- Navigating from the transient about:blank must replace window.customElements
- Navigating from the initial about:blank must replace window.customElements
- Discarding the browsing context must not change window.customElements
- document.open() must not replace window.customElements
pseudo-class-defined.window.js 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- "uncustomized" :defined doesn't care about your registry'
- "custom" :defined doesn't care about your registry
- "custom" :defined should apply after initialize
scoped-custom-element-registry-customelementregistry-attribute.html 23 / 23 passingChrome 23 / 230 failedClean
23 passing subtests
- HTML parser should create a builtin element with null registry if customelementregistry is set
- Setting customelementregistry content attribute after a builtin element had finishsed parsing should not set null registry
- Cloning a builtin element with null regsitry should create an element with null registry
- HTML parser should create a custom element candidate with null registry if customelementregistry is set
- Setting customelementregistry content attribute after a custom element candidate had finishsed parsing should not set null registry
- Cloning a custom element candidate with null regsitry should create an element with null registry
- HTML parser should create a custom element with null registry if customelementregistry is set
- Setting customelementregistry content attribute after a custom element had finishsed parsing should not set null registry
- Cloning a custom element with null regsitry should create an element with null registry
- Descendants of an element with customelementregistry should use null registry
- Setting customelementregistry content attribute during constructor should not make it use null registry
- Body with customelementregistry attribute during initial parse should have null registry and propagate to children
- Custom element candidate child of body with customelementregistry should have null registry during initial parse
- Descendants of body with customelementregistry should all have null registry during initial parse
- Body with customelementregistry in a complete document structure should have null registry
- Initial parse: built-in element with customelementregistry has null registry
- Initial parse: custom element candidate with customelementregistry has null registry
- Initial parse: built-in element without customelementregistry uses global registry
- Initial parse: custom element candidate without customelementregistry uses global registry
- Initial parse: child of element with customelementregistry inherits null registry
- Initial parse: custom element candidate child inherits null registry from parent
- Initial parse: deeply nested descendant inherits null registry
- Initial parse: global registry define only upgrades elements without customelementregistry
scoped-registry-append.html 15 / 16 passingChrome 14 / 161 failedWith failures
- ¶
FAILGlobal registry element should gain effective global registry of scoped registry from its parent upon adoption.
assert_equals: expected object "[object CustomElementRegistry]" but got null
15 passing subtests
- customElementRegistry of an upgrade candidate created in a document without a browsing context uses null regsitry by default
- Connecting a custom element candiate in a shadow root with a scoped custom element registry has null registry by default
- Connecting a custom element candiate with null registry does not set the registry
- Connecting a custom element candiate with a scoped custom element registry does not change the registry
- Inserting a custom element candiate with null registry does not change the registry
- Inserting the shadow host of a shadow root with a scoped custom element registry does not change the registry
- Inserting a node from another document with global registry results in the custom element registry to be set and upgraded.
- Inserting a node from another document with null registry results in the custom element registry to be set and upgraded.
- Inserting a node cloned from a template with null registry into a scoped shadow root should set global registry
- adoptNode then inserting into a scoped shadow root should preserve global registry
- Declarative shadow DOM without shadowrootcustomelementregistry attribute without registry initialized should gain effective global registry after adoption.
- Declarative shadow DOM with shadowrootcustomelementregistry attribute without registry initialized should remain null registry after adoption.
- Null registry element should gain effective global registry of global registry from its parent upon adoption.
- Null registry element should gain effective global registry of null from its parent upon adoption.
- Null registry element should gain effective global registry of scoped registry from its parent upon adoption.
scoped-registry-define-upgrade-criteria.html 14 / 14 passingChrome 14 / 140 failedClean
14 passing subtests
- Adding definition to scoped registry should upgrade nodes associated with the registry.
- Adding definition to global registry should not affect shadow roots using scoped registry
- Adding definition to global registry should affect shadow roots also using global registry
- Adding definition to scoped registry should affect all associated shadow roots
- Adding definition to scoped registry should not affect document tree scope
- Adding definition to scoped registry should not affect shadow roots using other registries
- Adding definition to scoped registry should upgrade nodes even after the node is moved into a separate shadow tree.
- Adding definition to scoped registry should upgrade nodes even after the node is moved to a separate shadow tree using a different registry.
- Adding definition to scoped registry affects associated shadow roots in all iframes
- Adding definition to scoped registry affects associated shadow roots in other frame trees
- Adding definition to scoped registry should not upgrade disconnected elements
- Adding definition to scoped registry should not upgrade nodes in constructed documents
- Adding definition to scoped registry should not upgrade nodes in detached frames
- Adding definition to scoped registry should not upgrade nodes in closed windows
scoped-registry-define-upgrade-order.html 7 / 7 passingChrome 7 / 70 failedClean
7 passing subtests
- Upgrade in tree order in the same tree scope
- Upgrade in shadow-including tree order across tree scopes
- Upgrade order does not depend on shadow root attach order
- Upgrade in association order across documents, then tree order in each document
- Upgrade order is not affected by DOM order between child frames
- Upgrade order is affected by shadow tree adoption across documents
- Elements in the "owner" window of a scoped registry are not always upgraded first
scoped-registry-effective-global-registry.html 66 / 66 passingChrome 42 / 660 failedClean
66 passing subtests
- Null registry element with element parent without custom element registry attribute (null registry) appended to new document
- Null registry element with element parent without custom element registry attribute (global registry) appended to new document
- Null registry element with element parent without custom element registry attribute (scoped registry) appended to new document
- Null registry element with declarative shadow root parent without custom element registry attribute appended to new document
- Null registry element with declarative shadow root parent with custom element registry attribute (null registry) appended to new document
- Null registry element with declarative shadow root parent with custom element registry attribute (global registry) appended to new document
- Null registry element with declarative shadow root parent with custom element registry attribute (scoped registry) appended to new document
- Null registry element with imperative shadow root parent (null registry) appended to new document
- Null registry element with imperative shadow root parent (global registry) appended to new document
- Null registry element with imperative shadow root parent (scoped registry) appended to new document
- Global registry element with element parent without custom element registry attribute (null registry) appended to new document
- Global registry element with element parent without custom element registry attribute (global registry) appended to new document
- Global registry element with element parent without custom element registry attribute (scoped registry) appended to new document
- Global registry element with declarative shadow root parent without custom element registry attribute appended to new document
- Global registry element with declarative shadow root parent with custom element registry attribute (null registry) appended to new document
- Global registry element with declarative shadow root parent with custom element registry attribute (global registry) appended to new document
- Global registry element with declarative shadow root parent with custom element registry attribute (scoped registry) appended to new document
- Global registry element with imperative shadow root parent (null registry) appended to new document
- Global registry element with imperative shadow root parent (global registry) appended to new document
- Global registry element with imperative shadow root parent (scoped registry) appended to new document
- Scoped registry element with element parent without custom element registry attribute (null registry) appended to new document
- Scoped registry element with element parent without custom element registry attribute (global registry) appended to new document
- Scoped registry element with element parent without custom element registry attribute (scoped registry) appended to new document
- Scoped registry element with declarative shadow root parent without custom element registry attribute appended to new document
- Scoped registry element with declarative shadow root parent with custom element registry attribute (null registry) appended to new document
- Scoped registry element with declarative shadow root parent with custom element registry attribute (global registry) appended to new document
- Scoped registry element with declarative shadow root parent with custom element registry attribute (scoped registry) appended to new document
- Scoped registry element with imperative shadow root parent (null registry) appended to new document
- Scoped registry element with imperative shadow root parent (global registry) appended to new document
- Scoped registry element with imperative shadow root parent (scoped registry) appended to new document
- Null registry element with element parent without custom element registry attribute (null registry) adopted by new document
- Null registry element with element parent without custom element registry attribute (global registry) adopted by new document
- Null registry element with element parent without custom element registry attribute (scoped registry) adopted by new document
- Null registry element with declarative shadow root parent without custom element registry attribute adopted by new document
- Null registry element with declarative shadow root parent with custom element registry attribute (null registry) adopted by new document
- Null registry element with declarative shadow root parent with custom element registry attribute (global registry) adopted by new document
- Null registry element with declarative shadow root parent with custom element registry attribute (scoped registry) adopted by new document
- Null registry element with imperative shadow root parent (null registry) adopted by new document
- Null registry element with imperative shadow root parent (global registry) adopted by new document
- Null registry element with imperative shadow root parent (scoped registry) adopted by new document
- Global registry element with element parent without custom element registry attribute (null registry) adopted by new document
- Global registry element with element parent without custom element registry attribute (global registry) adopted by new document
- Global registry element with element parent without custom element registry attribute (scoped registry) adopted by new document
- Global registry element with declarative shadow root parent without custom element registry attribute adopted by new document
- Global registry element with declarative shadow root parent with custom element registry attribute (null registry) adopted by new document
- Global registry element with declarative shadow root parent with custom element registry attribute (global registry) adopted by new document
- Global registry element with declarative shadow root parent with custom element registry attribute (scoped registry) adopted by new document
- Global registry element with imperative shadow root parent (null registry) adopted by new document
- Global registry element with imperative shadow root parent (global registry) adopted by new document
- Global registry element with imperative shadow root parent (scoped registry) adopted by new document
- Scoped registry element with element parent without custom element registry attribute (null registry) adopted by new document
- Scoped registry element with element parent without custom element registry attribute (global registry) adopted by new document
- Scoped registry element with element parent without custom element registry attribute (scoped registry) adopted by new document
- Scoped registry element with declarative shadow root parent without custom element registry attribute adopted by new document
- Scoped registry element with declarative shadow root parent with custom element registry attribute (null registry) adopted by new document
- Scoped registry element with declarative shadow root parent with custom element registry attribute (global registry) adopted by new document
- Scoped registry element with declarative shadow root parent with custom element registry attribute (scoped registry) adopted by new document
- Scoped registry element with imperative shadow root parent (null registry) adopted by new document
- Scoped registry element with imperative shadow root parent (global registry) adopted by new document
- Scoped registry element with imperative shadow root parent (scoped registry) adopted by new document
- Null registry element with exclusive DocumentFragment parent appended to new document
- Global registry element with exclusive DocumentFragment parent appended to new document
- Scoped registry element with exclusive DocumentFragment parent appended to new document
- Null registry element with exclusive DocumentFragment parent adopted by new document
- Global registry element with exclusive DocumentFragment parent adopted by new document
- Scoped registry element with exclusive DocumentFragment parent adopted by new document
scoped-registry-initialize-upgrades.html 12 / 12 passingChrome 12 / 120 failedClean
12 passing subtests
- Document: CustomElementRegistry.prototype.initialize should upgrade the element given to the first argument
- Document: CustomElementRegistry.prototype.initialize should upgrade elements in tree order
- Document: CustomElementRegistry.prototype.initialize only upgrades elements beloning to the registry
- HTMLDocument: CustomElementRegistry.prototype.initialize should upgrade the element given to the first argument
- HTMLDocument: CustomElementRegistry.prototype.initialize should upgrade elements in tree order
- HTMLDocument: CustomElementRegistry.prototype.initialize only upgrades elements beloning to the registry
- XHTMLDocument: CustomElementRegistry.prototype.initialize should upgrade the element given to the first argument
- XHTMLDocument: CustomElementRegistry.prototype.initialize should upgrade elements in tree order
- XHTMLDocument: CustomElementRegistry.prototype.initialize only upgrades elements beloning to the registry
- CustomElementRegistry.prototype.initialize upgrades already initialized elements
- CustomElementRegistry.prototype.initialize upgrades custom elements in declarative shadow root when initialize() runs before define()
- CustomElementRegistry.prototype.initialize upgrades custom elements in imperative shadow root when inserted before define()
scoped-registry-initialize.html 27 / 27 passingChrome 27 / 270 failedClean
27 passing subtests
- Document: customElementRegistry of an upgrade candidate created with a document without a browsing context uses null regsitry by default
- Document: customElementRegistry of an upgrade candidate after calling CustomElementRegistry.prototype.initialize should return the registry
- Document: customElementRegistry of an upgrade candidate created with an explicit customElementRegistry argument should return the registry
- Document: customElementRegistry of an unknown element created with a document without a browsing context uses null regsitry by default
- Document: customElementRegistry of an unknown element after calling CustomElementRegistry.prototype.initialize should return the registry
- Document: customElementRegistry of an unknown element created with an explicit customElementRegistry argument should return the registry
- Document: customElementRegistry of an upgrade candidate connected to a document without a browsing context uses null regsitry by default
- Document: customElementRegistry of document and an upgrade candidate after calling CustomElementRegistry.prototype.initialize should return the registry
- Document: customElementRegistry of an element created after calling CustomElementRegistry.prototype.initialize should return the registry
- HTMLDocument: customElementRegistry of an upgrade candidate created with a document without a browsing context uses null regsitry by default
- HTMLDocument: customElementRegistry of an upgrade candidate after calling CustomElementRegistry.prototype.initialize should return the registry
- HTMLDocument: customElementRegistry of an upgrade candidate created with an explicit customElementRegistry argument should return the registry
- HTMLDocument: customElementRegistry of an unknown element created with a document without a browsing context uses null regsitry by default
- HTMLDocument: customElementRegistry of an unknown element after calling CustomElementRegistry.prototype.initialize should return the registry
- HTMLDocument: customElementRegistry of an unknown element created with an explicit customElementRegistry argument should return the registry
- HTMLDocument: customElementRegistry of an upgrade candidate connected to a document without a browsing context uses null regsitry by default
- HTMLDocument: customElementRegistry of document and an upgrade candidate after calling CustomElementRegistry.prototype.initialize should return the registry
- HTMLDocument: customElementRegistry of an element created after calling CustomElementRegistry.prototype.initialize should return the registry
- XHTMLDocument: customElementRegistry of an upgrade candidate created with a document without a browsing context uses null regsitry by default
- XHTMLDocument: customElementRegistry of an upgrade candidate after calling CustomElementRegistry.prototype.initialize should return the registry
- XHTMLDocument: customElementRegistry of an upgrade candidate created with an explicit customElementRegistry argument should return the registry
- XHTMLDocument: customElementRegistry of an unknown element created with a document without a browsing context uses null regsitry by default
- XHTMLDocument: customElementRegistry of an unknown element after calling CustomElementRegistry.prototype.initialize should return the registry
- XHTMLDocument: customElementRegistry of an unknown element created with an explicit customElementRegistry argument should return the registry
- XHTMLDocument: customElementRegistry of an upgrade candidate connected to a document without a browsing context uses null regsitry by default
- XHTMLDocument: customElementRegistry of document and an upgrade candidate after calling CustomElementRegistry.prototype.initialize should return the registry
- XHTMLDocument: customElementRegistry of an element created after calling CustomElementRegistry.prototype.initialize should return the registry
scoped-registry-registry-define-get-etc.html 7 / 7 passingChrome 7 / 70 failedClean
7 passing subtests
- Custom element registries with a registered custom element return the class in their get method, and the name in their getName method
- Scoped Custom element registries do not inherit names or classes from the global registry
- Scoped Custom element registries return the same constructor when it is defined in both
- Scoped Custom element registries allow registering name that exists in global registry
- Custom element registries with a registered custom element resolve the class in their whenDefined method
- Scoped Custom element registries resolve the same constructor from whenDefined when it is defined in both
- Scoped Custom element registry getters do not resolve globally registered classes from whenDefined
template.window.js 10 / 10 passingChrome 10 / 100 failedClean
10 passing subtests
- shadowRootCustomElementRegistry reflects as string
- Serializing a null registry ShadowRoot with a global registry host (document)
- Serializing a global registry ShadowRoot with a global registry host (document)
- Serializing a scoped registry ShadowRoot with a global registry host (document)
- Serializing a null registry ShadowRoot with a null registry host (document)
- Serializing a scoped registry ShadowRoot with a null registry host (document)
- Serializing a null registry ShadowRoot with a scoped registry host (document)
- Serializing a scoped registry ShadowRoot with a scoped registry host (document)
- A declarative shadow root gets its default registry from its node document
- Custom element upgrades inside a declarative shadow root parsed via template.setHTMLUnsafe()
upgrade.html 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- Upgrading an element directly (example from the spec)
- Two elements as children of the upgraded node
- Two elements as descendants of the upgraded node
- Two elements as shadow-including descendants (and not descendants) of the upgraded node
- Elements inside a template contents DocumentFragment node
valid-custom-element-names.html 1,975 / 1,975 passingChrome 1,975 / 1,9750 failedClean
1,975 passing subtests are not listed: this file has more than 500 subtests, so only those that did not pass are kept.