[whatwg] Partial HTML5 documents

On Thu, Sep 9, 2010 at 9:06 AM, Rostislav Hristov
<rostislav.hristov at gmail.com> wrote:
> Hello,
>
> I'm looking for a way to define valid partial HTML fragments that can
> be included into other documents using a server-side language or
> injected using AJAX. The current specification doesn't have any major
> restrictions in this area but it always require the presence of a
> TITLE tag which in this specific case is not needed. Does anybody have
> an idea if the TITLE can be skipped somehow or how this whole thing
> can be implemented properly? Do you think it should be specified?

If you're just passing around fragments in javascript or server-side
code, then there's no need whatsoever to have a valid document at all
times.  You just need to ensure that the final page is valid.  So, you
don't need a <title> at all on some fragment you're fetching via ajax.

~TJ

Received on Thursday, 9 September 2010 09:12:28 UTC