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

Re: Ratios Do Not Return Errors (part of detailed review of common microsyntaxes)

From: Smylers <Smylers@stripey.com>
Date: Wed, 11 Jul 2007 13:17:19 +0100
To: public-html@w3.org
Message-ID: <20070711121719.GD18099@stripey.com>

Geoffrey Sneddon writes:

> The rest of the numbers within common microsyntaxes return errors
> when they are unable to return anything else, yet ratios "return
> nothing" ... why do ratios return nothing and not false?

Look at the definition of the <meter> element; getting numbers out of a
ratio is optional (since they can also be specified with attributes, or
default values used), so it is not an error for no numbers to be
returned when trying to parse a ratio:

  http://www.whatwg.org/specs/web-apps/current-work/#meter

Smylers
Received on Wednesday, 11 July 2007 12:17:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:46 UTC