<measure> web component
@keithamus is already working on this.
Since Jun 4, 2026.
- Dominant language
- MDX
- Stars
- 4.5k
- Forks
- 226
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 4
Description
I would like to present an idea for a web component, it's very similar to the <time> element in the sense that it's and inline element with an attribute that accepts a value of a certain standard. While <time> has a datetime attribute, the new <measure> element might have a set of unit and value attributes.
Example:
<data unit="meter" value="2">2m</data>
This web component could reuse the existing element <data>, or introduce a new one (e.g. <m>, <measure>).
The main purpose would be to standardize an API that will allow physical measurements to be machine-readable and thus easier for automatic/on-demand conversion which can aid a11y for users of varying locales.
Some candidates that I could find for unit code standard are UN/CEFACT Common Codes, UCUM's units, or Wikipedia's.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.