W3C home > Mailing lists > Public > public-html@w3.org > July 2007

Lack Of Definition Of A Valid Ratio (part of detailed review of common microsyntaxes)

From: Geoffrey Sneddon <foolistbar@googlemail.com>
Date: Tue, 10 Jul 2007 13:40:41 +0100
Message-Id: <82A12FE2-09A0-487D-8522-AB4B4E95E2BF@googlemail.com>
To: public-html@w3.org

The ratio subsection of common microsyntaxes does not do what the  
rest of the numbers do: define what a valid number is. Due to the  
algorithm returning at all sorts of places, it is rather complex to  
work out, but I think:

[[
A string is a valid ratio if it consists of either one of more  
characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE  
(9) followed by a denominator punctuation character (see table  
below), or two valid unsigned integers separated by one or more  
characters in Unicode character class Zs.
]]

- Geoffrey Sneddon
Received on Tuesday, 10 July 2007 12:40:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:02 GMT