[whatwg] W3C compatibility

Anne van Kesteren annevk at opera.com
Mon Feb 12 03:04:15 PST 2007


On Mon, 12 Feb 2007 11:57:09 +0100, Benjamin Hawkes-Lewis  
<bhawkeslewis at googlemail.com> wrote:
> [...] but I still can't see there's
> any practical alternative when elements with different semantics share
> the same namespace.)

The practical alternative is to follow the definition that makes most  
sense. And not try to implement both.


> * XHTML2 and "XHTML5" have wildly different ways of indicating document
> structure with headings.

How so?


> * XHTML2 often uses role attributes to indicate semantics/functionality
> where "XHTML5" supplies elements (or uses registered microformats). For
> example, XHTML2 defines a role called "note" as "The content is
> parenthetic or ancillary to the main content of the resource." "XHTML5"
> defines an element <aside/> that "represents a section of a page that
> consists of content that is tangentially related to the content around
> the aside element, and which could be considered separate from that
> content".

XHTML5 also has a semantic class name "note" for this very purpose which  
can be used on <aside>, <p> and <span>.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>



More information about the whatwg mailing list