W3C complains about "quantity" widget

1 reply · opened Sep 21, 2023

FfotobobSep 21, 2023

I validated my pages with W3C... they are not happy with the attributes you are using in your "quantity" code:
<div class="quantity">
<input type="button" value="-" class="minus">
<input type="text" step="1" min="1" name="quantity" value="1" title="Qty" class="qty" size="4">
<input type="button" value="+" class="plus">
</div>

Error: Attribute step not allowed on element input at this point.
From line 313, column 12; to line 313, column 106
<input type="text" step="1" min="1" name="quantity" value="1" title="Qty" class="qty" size="4">↩

Error: Attribute min not allowed on element input at this point.
From line 313, column 12; to line 313, column 106
<input type="text" step="1" min="1" name="quantity" value="1" title="Qty" class="qty" size="4">↩

While I like my pages to validate, these errors don't seem too serious.
Should I just ignore them, or do you have a fix that would make the W3C happy?

SSemicolon WebSTAFFSep 21, 2023

Hello,

Apologies for the Inconveniences caused and Thanks for reporting this!

This is a mistake on our end. Simply changing the type="text" to type="number" will fix these error warnings. We will update this in the Next Update. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard