Use of XSD number types is inconsistent with numbers in HTML

ITS 2.0 says things like: “An optional termConfidence attribute with
the value of a rational number in the interval 0 to 1 (inclusive). The
value follows the XML Schema decimal data type with the constraining
facets minInclusive set to 0 and maxInclusive set to 1.”

XSD number types allow leading and trailing whitespace. HTML-native
number-valued attributes–such as those on <input type=range>–don’t.

For consistency with the rest of HTML, please use the HTML number microsyntaxes:
http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#numbers

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Thursday, 17 January 2013 10:36:33 UTC