[whatwg] DOM4: createHTMLDocument argument

Ojan Vafai ojan at chromium.org
Tue Sep 11 12:10:54 PDT 2012


On Tue, Sep 11, 2012 at 10:20 AM, Anne van Kesteren <annevk at annevk.nl>wrote:

> On Tue, Sep 11, 2012 at 7:07 PM, Ojan Vafai <ojan at chromium.org> wrote:
> > Is it? All I see in the spec is "There must be no more than one title
> > element per document."
>
>
> http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-head-element
> requires it (via the content model).
>

Meh. Makes sense for top-level documents, but I don't see why we'd require
a title for iframes or documents you'd create from createHTMLDocument.


> >> Should the spec say to omit the title element altogether when the
> argument
> >> is omitted?
> >
> > Makes sense to me. WebKit's current behavior is dumb. :)
>
> Should we also make the createDocument() arguments optional?
>

I don't feel strongly either way. May as well make them optional?



More information about the whatwg mailing list