We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba035a commit 047ca68Copy full SHA for 047ca68
src/NodeComponent.ts
@@ -81,7 +81,7 @@ export abstract class NodeComponent<T extends Node> {
81
*/
82
public slot(slot: string, parent: ParentNode = document) {
83
const slotNode = parent.querySelector(`slot[name="${slot}"]`);
84
- if (slotNode == null) throw new DOMException(`NodeComponent.slot: Could not find slot ${slot}`);
+ if (slotNode === null) throw new DOMException(`Could not find slot "${slot}"`);
85
slotNode.replaceWith(this.node);
86
return this;
87
}
0 commit comments