[whatwg] DOM4: createHTMLDocument argument

Simon Pieters simonp at opera.com
Tue Sep 11 01:23:28 PDT 2012


On Mon, 10 Sep 2012 18:25:56 +0200, Erik Arvidsson <arv at chromium.org>  
wrote:

> In WebKit the argument to createHTMLDocument is optional, defaulting
> to the empty string. In DOM4 it is a required argument
>
> http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#domimplementation
>
> It seems reasonable to change the spec here since it is common to want
> to create a document without a title.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1756

AFAICT it doesn't default to the empty string in WebKit, it defaults to  
"undefined".

The title element is required in HTML. What are the use cases for creating  
a document without a title?

-- 
Simon Pieters
Opera Software



More information about the whatwg mailing list