W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2006

[whatwg] foreign attributes Re: several messages about XML syntax and HTML5

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 5 Dec 2006 06:09:12 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0612050606050.1994@dhalsim.dreamhost.com>
On Tue, 5 Dec 2006, Karl Dubost wrote:
> Le 5 d?c. 2006 ? 05:34, Ian Hickson a ?crit :
> >
> > The other issue, supporting other vocabularies in HTML5, is an open 
> > issue, but it will be addressed in due course. We need more 
> > implementation experience first, and there are far more pressing 
> > problems.
> 
> slightly related. What about foreign attributes. I haven't found in the 
> document the handling rules for unknown attributes. 
> http://www.whatwg.org/specs/web-apps/current-work/

Bogus attributes end up in the DOM but have no other requirements on 
processing, so, they are ignored. The spec covers this.


> A group with a need of specific attribute might want to add new 
> attributes to Web Apps 1.0.
> - What are the extensions mechanims for this?

"class", "rel", and "profile" are the extension mechanism for HTML. For 
examples of how this is used to great effect, see the Microformats.org 
work, where entire vocabularies like vCard, iCalendar, etc, are embedded 
into HTML documents using "class" and "rel". (This has the added advantage 
of being a highly accessible extension mechanism, unlike most.)

Cheers,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 4 December 2006 22:09:12 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:31 UTC