Skip to content

Commit

Permalink
Merge pull request #19 from bennyborn/master
Browse files Browse the repository at this point in the history
use `replaceChild` instead of `replaceWith` to be compatible with MSIE
  • Loading branch information
Lixus committed Oct 2, 2020
2 parents fa43f13 + 8be4afb commit 4833a22
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 4833a22

Please sign in to comment.