W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2007

[whatwg] <meter> with Max Specified Twice

From: Smylers <Smylers@stripey.com>
Date: Thu, 12 Jul 2007 16:52:15 +0100
Message-ID: <20070712155215.GA16422@stripey.com>
Under the current spec these <meter> elements both have a value of 7:

  <meter>7/10</meter>

  <meter max="10">7</meter>

but this one has a value of zero (while still having a max of 10):

  <meter max="10">7/10</meter>

While specifying the max value twice like this is obviously redundant,
in the cases where both values are the same it's unambiguous and
arguably harmless.

Is there merit in allowing this case?

If not, would some other failure mode be less confusing?  It seems a
little awkward that when double-specifying one attribute that
attribute's value gets set as specified and it's an entirely different
one which has its apparent value ignored.

Smylers
Received on Thursday, 12 July 2007 08:52:15 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:57 UTC