diff --git a/lib/jsdom/living/nodes/Element-impl.js b/lib/jsdom/living/nodes/Element-impl.js index 48aa00c502..01a8c65b4c 100644 --- a/lib/jsdom/living/nodes/Element-impl.js +++ b/lib/jsdom/living/nodes/Element-impl.js @@ -388,7 +388,7 @@ class ElementImpl extends NodeImpl { if (this._shadowRoot !== null) { throw new DOMException( "Shadow root cannot be created on a host which already hosts a shadow tree.", - "InvalidStateError" + "NotSupportedError" ); }