metaformats specification - Microformats Wiki (original) (raw)

metaformats is an extension to the microformats2-parsing for parsing invisible data published in HTML meta tags, both with an explicit methodology, and for backward compatibility with existing vocabularies that have multiple testable interoperable implementations.

This is a Living Specification that is subject to change as research discovers meta tag vocabularies in wide use and consumed by multiple implementations. This specification has no stable portions. Features are untested, unless explicitly labeled stable, draft, or proposed, or in stable, draft, or proposed sections. All features are likely to change. Stable features are possible, and thus this living specification may eventually document some. When stable features are documented, substantive changes may be proposed by issues and errata filed in response to implementation experience, requiring consensus among participating implementers as part of an explicit to be defined change control process.

Participate

Open Issues

IRC

License

Per CC0, to the extent possible under law, the editors have waived all copyright and related or neighboring rights to this work. In addition, as of 2025-06-20, the editors have made this specification available under the Open Web Foundation Agreement Version 1.0.

Initial publication

2022-04-01

algorithm changes

For each of the following subsections, apply the changes therein to the steps in the same subsection in the microformats2-parsing specification.

parse a document for microformats

Change the line "start with an empty JSON…" to:

Update the JSON sample data structure to:

{ "items": [], "meta-item": {}, "rels": {}, "rel-urls": {} }

Before the line "* return the resulting JSON", insert:

parsing an element for properties

parsing a p- property

insert before "else return the textContent of the element after …":

parsing a u- property

insert before "else return the textContent of the element after …":

parsing a dt- property

insert before "else return the textContent of the element after …":

parse the head element for backcompat metaformats

After the section "parse an img element for src and alt", insert a new sibling section:

=== parse the head element for backcompat metaformats ===

With the following instructions:

Background

The following prior work was used to develop this specification:

See Also