[whatwg] <meter> with Max Specified Twice

Smylers Smylers at stripey.com
Thu Jul 12 08:52:15 PDT 2007


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



More information about the whatwg mailing list