Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix DOMException type for attachShadow
  • Loading branch information
TimothyGu committed Sep 27, 2019
1 parent 2c53a87 commit 0fd21bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsdom/living/nodes/Element-impl.js
Expand Up @@ -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"
);
}

Expand Down

0 comments on commit 0fd21bb

Please sign in to comment.