Microformats

Microformats data- Class Pattern

Experimental

This is an XMDP profile for a proposed pattern for including machine readable data in microformats.

Authors making use of this experimental pattern should include this profile in their document head. The permanent, canonical URI for this document is: http://purl.org/uF/pattern-data-class/1. Other URIs for this document may not be permanent so must not be used.

An example of linking to this profile in HTML 4.0:

<html>
	<head profile="http://purl.org/uF/pattern-data-class/1 http://purl.org/uF/2008/03/">
	...
class

HTML4 definition of the 'class' attribute. This meta data profile defines some 'class' attribute values (class names) and their meanings as suggested by a draft of "Hypertext Links in HTML".

data-X

X may be any arbitrary data. This class indicates that the content of the element may be ignored by microformats parsers, and the value X parsed instead.

Percent characters, white space and any characters not allowed in class names must be percent-encoded using the format described in RFC 3986. Hex encoding should use lowercase letters a-f rather than uppercase. Non-ASCII characters must be transliterated into ASCII characters or percent-encoded using UTF-8.

If multiple data-X classes are found on a single element, parsers should use the longest class. (Calculated on string length after percent-decoding.)

Changes

2008-06-21
Initial version of this page.

Valid XHTML 1.1!