MCPcopy Create free account
hub / github.com/ampproject/amphtml / getSlot

Function getSlot

test/unit/preact/test-base-element-runtime.js:131–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129
130 it('should rediscover children when slot is removed', async () => {
131 function getSlot() {
132 return (
133 element.shadowRoot &&
134 element.shadowRoot.querySelector('slot[name="slot1"]')
135 );
136 }
137
138 await element.mountInternal();
139 const child1 = element.querySelector('#child1');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected