Skip to content

Commit

Permalink
use replaceChild instead of replaceWith to be compatible with MSIE
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyborn committed Oct 2, 2020
1 parent d0a7f4f commit 8be4afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/contao/templates/form_recaptcha.html5
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
input.setAttribute('name', 'g-recaptcha-response');
input.setAttribute('value', token);

node.replaceWith(input);
node.parentNode.replaceChild(input, node);
});
<?php endif; ?>
}
Expand Down

0 comments on commit 8be4afb

Please sign in to comment.