[Stripe] How to remove the «This Element will be mounted to a DOM element that contains child nodes» warning

You can get the «This Element will be mounted to a DOM element that contains child nodes» warning if your element.mount argument is described in your HTML markup with a self-closing tag.

For example, the following code leads to the warning:

To remove the warning, use a separate closing, tag, for example:

By the way, my extension does not have this issue.