W3C home > Mailing lists > Public > public-multilingualweb-lt-comments@w3.org > January 2013

Use of XSD number types is inconsistent with numbers in HTML

From: Henri Sivonen <hsivonen@iki.fi>
Date: Thu, 17 Jan 2013 12:36:05 +0200
Message-ID: <CAJQvAufGP5LSbYUZm3qaxEWPdeJ5irLGFY6cEE9PZS726dCw+w@mail.gmail.com>
To: public-multilingualweb-lt-comments@w3.org
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:32:26 UTC