W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2007

[whatwg] <div> as a wrapper for inline content

From: Michel Fortin <michel.fortin@michelf.com>
Date: Thu, 4 Jan 2007 19:32:39 -0500
Message-ID: <193D9BEE-A230-4F82-A57D-8413466A3D38@michelf.com>
Le 2007-01-03 ? 20:26, Ian Hickson a ?crit :

> Hmm. I guess we could say it is block-or-structured-inline-but-not- 
> both,
> like most of the other elements.

This would make things easier with the Atom spec which says this  
about HTML content:

    Example atom:title with HTML content:

    ...
    <title type="html">
      Less: &lt;em> &amp;lt; &lt;/em>
    </title>
    ...

    If the value of "type" is "html", the content of the Text construct
    MUST NOT contain child elements and SHOULD be suitable for handling
    as HTML [HTML]. HTML markup within SHOULD be such that it could
    validly appear directly within an HTML <DIV> element, after
    unescaping.

and for XHTML content:

    Example atom:title with XHTML content:

    ...
    <title type="xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml">
      <xhtml:div>
        Less: <xhtml:em> &lt; </xhtml:em>
      </xhtml:div>
    </title>
    ...

    If the value of "type" is "xhtml", the content of the Text construct
    MUST be a single XHTML div element [XHTML] and SHOULD be suitable  
for
    handling as XHTML.


Michel Fortin
michel.fortin at michelf.com
http://www.michelf.com/
Received on Thursday, 4 January 2007 16:32:39 UTC

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