Jump to content

Documentation Error in meter tag?


danshafer

Recommended Posts

In the TryIt example in the documentation of the meter tag, the following examples are given:

 

<meter value="2" min="0" max="10">2 out of 10</meter><br><meter value="0.6">60%</meter>

 

But both of these fragments produce an unlabeled meter object in Chrome, Firefox and Safari on OS X. Reading other notes on other sites, it appears that the tag without contained text intended as a label is an acceptable syntax and apparently the only thing that actually works as expected on those browsers.

  • Like 1
Link to comment
Share on other sites

  • 11 months later...

@ danshafer

i agree with your report. I had also found the error you noted and came here to investigate it.

@davej

The text between the <meter> and </meter> tags (i.e. 2 out of 10 in the demo) doesn't display.

(not the fallback text)

 

<meter value="2" min="0" max="10">2 out of 10</meter>

Edited by PhilOfPerth
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...