From 8be4afbb77b4ddaabafbfa78ddcc69dde83fcde4 Mon Sep 17 00:00:00 2001 From: Benny Born Date: Fri, 2 Oct 2020 10:49:24 +0200 Subject: [PATCH] use `replaceChild` instead of `replaceWith` to be compatible with MSIE --- src/Resources/contao/templates/form_recaptcha.html5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/templates/form_recaptcha.html5 b/src/Resources/contao/templates/form_recaptcha.html5 index 87ba9e9..b167d10 100755 --- a/src/Resources/contao/templates/form_recaptcha.html5 +++ b/src/Resources/contao/templates/form_recaptcha.html5 @@ -40,7 +40,7 @@ input.setAttribute('name', 'g-recaptcha-response'); input.setAttribute('value', token); - node.replaceWith(input); + node.parentNode.replaceChild(input, node); }); }