Index: Source/core/dom/custom/CustomElementException.cpp |
diff --git a/Source/core/dom/custom/CustomElementException.cpp b/Source/core/dom/custom/CustomElementException.cpp |
index 9897d5ca5706491d55cfe0d264d4d4114a3bde85..84fdb9741df4eff4515e967ca01687120c7c1daa 100644 |
--- a/Source/core/dom/custom/CustomElementException.cpp |
+++ b/Source/core/dom/custom/CustomElementException.cpp |
@@ -61,7 +61,7 @@ void CustomElementException::throwException(Reason reason, const AtomicString& t |
return; |
case ContextDestroyedRegisteringDefinition: |
- exceptionState.throwDOMException(NotSupportedError, preamble(type) + "The context is no longer valid."); |
+ exceptionState.throwDOMException(InvalidStateError, preamble(type) + "The context is no longer valid."); |
return; |
case ExtendsIsInvalidName: |