diff --git a/plugins/woocommerce/changelog/bugfix-quantity-html-issue b/plugins/woocommerce/changelog/bugfix-quantity-html-issue new file mode 100644 index 00000000000..a243dfb8f2a --- /dev/null +++ b/plugins/woocommerce/changelog/bugfix-quantity-html-issue @@ -0,0 +1,5 @@ +Significance: patch +Type: fix +Comment: Fixes a warning that only shows up when validating page content + + diff --git a/plugins/woocommerce/templates/global/quantity-input.php b/plugins/woocommerce/templates/global/quantity-input.php index 61dbe181f10..2ff50286e4f 100644 --- a/plugins/woocommerce/templates/global/quantity-input.php +++ b/plugins/woocommerce/templates/global/quantity-input.php @@ -12,7 +12,7 @@ * * @see https://woocommerce.com/document/template-structure/ * @package WooCommerce\Templates - * @version 7.8.0 + * @version 9.4.0 * * @var bool $readonly If the input should be set to readonly mode. * @var string $type The input type attribute. @@ -42,7 +42,9 @@ $label = ! empty( $args['product_name'] ) ? sprintf( esc_html__( '%s quantity', name="" value="" aria-label="" - size="4" + + size="4" + min="" max=""