W3C home > Mailing lists > Public > public-html@w3.org > October 2010

Re: ISSUE-128 (figure-in-p): Chairs Solicit Proposals

From: Smylers <Smylers@stripey.com>
Date: Thu, 7 Oct 2010 13:51:38 +0100
To: HTML WG <public-html@w3.org>
Message-ID: <20101007125138.GF11344@stripey.com>
Henri Sivonen writes:

> Ian Hickson wrote:
> 
> > * Errors such as <em><figure>...</figure></em> will be caught and
> > reported by conformance checkers.
> 
> If this is of importance, it could be achieved while still allowing
> <figure> as the first child of <p>.

If <figure> doesn't imply </p> then <figure> should also be allowed as
the last child of a <p> as well as the first, so that authors can do:

  <p>Some text

  <figure><img><caption>Whatever</caption></figure>

  <p>Another paragraph

An author writing the above would likely consider the figure to be
between the paragraphs, rather than part of the first paragraph. So long
as things work as expected, it doesn't really matter if the author is
wrong in this belief, but the above sequence of tags needs to be allowed
in HTML5.

So if we decided to support <figure> being in <p> but restricted to sane
places to put it, we'd need to allow for <figure> at the end as well as
start of <p>-s.

And possibly we actually need that to be a sequence of one or more
<figure>-s that are allowed at the start or end of a <p>, to allow for
consecutive figures 'between' paragraphs that are actually marked up in
a way which technically puts them within a <p>.

(Note the above is not a suggestion that <p> should be allowed to
contain <figure>, nor a suggestion that <figure> in <p> should be
restricted; merely views on what we should do if it is allowed and
restricted.)

Cheers

Smylers
Received on Thursday, 7 October 2010 12:52:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:15 GMT