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

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