- From: Smylers <Smylers@stripey.com>
- Date: Thu, 7 Oct 2010 13:51:38 +0100
- To: HTML WG <public-html@w3.org>
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 UTC