html5: Difference between revisions
Jump to navigation
Jump to search
(added requests for examples and parsing details for HTML5 (if any are needed)) |
(Restate regarding REV/data-rev) |
||
Line 26: | Line 26: | ||
* '''The <code>rev</code> attribute has been removed'''. In HTML5, <code>rel</code> and <code>rev</code> are no-longer paired, and the <code>rel</code> attribute nolonger describes the direction of a relationship. Microformats which use <code>rev</code> will need to use <code>rel</code> instead. | * '''The <code>rev</code> attribute has been removed'''. In HTML5, <code>rel</code> and <code>rev</code> are no-longer paired, and the <code>rel</code> attribute nolonger describes the direction of a relationship. Microformats which use <code>rev</code> will need to use <code>rel</code> instead. | ||
** Or something like data-rev="vote-for". | ** Or something like data-rev="vote-for" | ||
*** As above, <code>data-</code> attributes are for application-context functionality, ''not'' shared vocabularies. Further, the HTML5 specification makes <code>rel</code> the correct attribute to use, regardless of direction, through the changed specification. --[[User:BenWard|BenWard]] 17:53, 12 May 2009 (UTC) | |||
* '''The <code>profile</code> attribute has been removed'''. In HTML, the <code>profile</code> attribute from the <code>head</code> has been removed, with no direct replacement. This causes issues for GRDDL support. It's been suggested that profile URLs be represented in <code>link</code> elements instead, or even as a custom HTTP header. See [[grddl]] and [[profile-uris]] | * '''The <code>profile</code> attribute has been removed'''. In HTML, the <code>profile</code> attribute from the <code>head</code> has been removed, with no direct replacement. This causes issues for GRDDL support. It's been suggested that profile URLs be represented in <code>link</code> elements instead, or even as a custom HTTP header. See [[grddl]] and [[profile-uris]] |
Revision as of 17:53, 12 May 2009
Microformats in HTML 5
This page is to document future use of microformats in HTML 5. None of the items documented are supported now, and may change upon proper development within the microformats community, or changes in the HTML 5 specification. This page is to track HTML5 enabled enhancements to microformats, and issues that HTML5 raises. It may be used to track issues which we need to push back into the HTML 5 development process.
If there are things that Microformats would like to mark up that aren't handled by HTML5 explicitly, please let the WHATWG know, so we can improve HTML5. This is how time
came to be, for instance.
New features in HTML5
time
element for representing date times. In HTML5, the machine form of datetimes can be represented natively. It should be possible to replace the date-time design pattern with native HTML.data-
naming convention for tag attributes. the draft specification states that any attribute that starts with "data-" will be treated as a storage area for private data.- Note that the data-* stuff is explicitly 'not' for Microformats, at least not Microformats that ever want to be handled natively by the browser. Those attributes are defined in such a way that browsers will never do anything special with them, ever. They are intended for script authors to have a space in which they can play without ever clashing with anything the browser does.
Current microformat compatibility
There seems to be no issue with current implementation of the following microformats in HTML 5:
Requests
- microformats examples that use HTML5, e.g.
- hCalendar with the
time
element
- hCalendar with the
- microformats parsing details that specify what to do (if anything special is required) with HTML5 elements
- how to parse the
time
element for dates and times for microformats - if nothing special is required, then after performing the analysis, that should be noted as well, for the purpose of clarity.
- how to parse the
Issues
- The
rev
attribute has been removed. In HTML5,rel
andrev
are no-longer paired, and therel
attribute nolonger describes the direction of a relationship. Microformats which userev
will need to userel
instead.- Or something like data-rev="vote-for"
- As above,
data-
attributes are for application-context functionality, not shared vocabularies. Further, the HTML5 specification makesrel
the correct attribute to use, regardless of direction, through the changed specification. --BenWard 17:53, 12 May 2009 (UTC)
- As above,
- Or something like data-rev="vote-for"
- The
profile
attribute has been removed. In HTML, theprofile
attribute from thehead
has been removed, with no direct replacement. This causes issues for GRDDL support. It's been suggested that profile URLs be represented inlink
elements instead, or even as a custom HTTP header. See grddl and profile-uris