From bzbarsky at MIT.EDU Sun Feb 1 08:00:14 2009
From: bzbarsky at MIT.EDU (Boris Zbarsky)
Date: Sun, 01 Feb 2009 11:00:14 -0500
Subject: [whatwg] Resolving a URL
In-Reply-To:
More Text...
But I admit I have no idea what other problems this could cause. From bhawkeslewis at googlemail.com Thu Feb 5 01:08:14 2009 From: bhawkeslewis at googlemail.com (Benjamin Hawkes-Lewis) Date: Thu, 05 Feb 2009 09:08:14 +0000 Subject: [whatwg] List Headers In-Reply-To: <498AA0BB.9030501@gmx.ch> References: <49896A54.2040607@sanchothefat.com> <6BC3A580-957F-481D-B9F8-7B7A13162601@pha.hk> <498972DB.1060107@lachy.id.au>Text before ...
>There are lots of fruits available, e.g.:
>More Text...
> > More appropriate markup for this could be achieved with the LH suggestion: > >Text before ...
>More Text...
> > Anyway I would consider it even more appropriate to allow the list > inside a paragraph: >Text before ...
>There are lots of fruits available, e.g.: >
More Text...
> > But I admit I have no idea what other problems this could cause. I agree (?) that the use case you raise is not "list headers" but lists inside paragraphs, and I agree that nested block content can legitimately be placed inside a paragraph - it certainly is in print. Other examples of legitimately nested content would include quotations and perhaps tables. But HTML5 cannot allow "ul" (or "blockquote" or "table") as children of "p" in the text/html serialization because legacy content relies on "p" end-tag insertion before those block element's start tags. In other words, web-corpus-compatible parsers need to parse the above as equivalent to:Text before ...
There are lots of fruits available, e.g.:
More Text...
HTML5's definition of how to interpret non-"p" content as "paragraphs" excludes using any alternate wrapper (e.g. "div") to wrap the text and the "ul" as one semantic paragraph. http://www.whatwg.org/specs/web-apps/current-work/#paragraphs? and lots of other things.To be or not to be, that is the question