When Link is enabled, some unexpected HTML is included in the error message for the required email address field. This is only happening on the shortcode checkout.
To Reproduce
Ensure that the Legacy checkout experience is disabled under the Stripe settings tab, at wp-admin/admin.php?page=wc-settings&tab=checkout§ion=stripe&panel=settings
Ensure Link is enabled under the Payment Methods tab, at wp-admin/admin.php?page=wc-settings&tab=checkout§ion=stripe&panel=methods
Create a page that contains the shortcode checkout, if you don't have one already
As a shopper, add a product to the cart and go to the shortcode checkout page
Ensure that the email address field is empty
Click on Place Order
Notice the error message contains <button class="stripe-gateway-stripelink-modal-trigger"></button>
Expected behavior
The error message must not contain <button class="stripe-gateway-stripelink-modal-trigger"></button>.
Describe the bug
When Link is enabled, some unexpected HTML is included in the error message for the required email address field. This is only happening on the shortcode checkout.
To Reproduce
wp-admin/admin.php?page=wc-settings&tab=checkout§ion=stripe&panel=settings
wp-admin/admin.php?page=wc-settings&tab=checkout§ion=stripe&panel=methods
<button class="stripe-gateway-stripelink-modal-trigger"></button>
Expected behavior The error message must not contain
<button class="stripe-gateway-stripelink-modal-trigger"></button>
.