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 b24a078 commit 07a16ffCopy full SHA for 07a16ff
src/main/java/org/htmlunit/javascript/host/Element.java
@@ -859,7 +859,7 @@ public String getInnerHTML() {
859
return getInnerHTML(domNode);
860
}
861
catch (final IllegalStateException e) {
862
- throw JavaScriptEngine.throwAsScriptRuntimeEx(e);
+ throw JavaScriptEngine.typeError(e.getMessage());
863
864
865
@@ -874,7 +874,7 @@ public void setInnerHTML(final Object value) {
874
domNode = getDomNodeOrDie();
875
876
877
878
879
880
String html = null;
0 commit comments