W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2007

[whatwg] HTMLDocument.title and SVGDocument

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 5 Jun 2007 05:33:52 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.0706050526420.23576@dhalsim.dreamhost.com>
On Fri, 1 Jun 2007, Maciej Stachowiak wrote:
> >
> > I basically see two options: HTMLDocument.title always wins, and you 
> > can get the other one using getFeature(), or, they both get redefined 
> > to check the root element and dispatch to the other one if 
> > appropriate. Suggestions?
> 
> I like the "check the root element" option. That way, one could use the 
> exact same Document object implementation for SVG and XHTML, while 
> remaining compatible with expected behavior for existing content in both 
> languages. Compound documents where both the HTML and the SVG have a 
> title are possible, but that seems obscure enough that a special DOM API 
> to get both titles is probably unnecessary.

On Sat, 2 Jun 2007, Anne van Kesteren wrote:
> 
> Even in that case only one title can be the document title.

On Sat, 2 Jun 2007, Maciej Stachowiak wrote:
> 
> If we define which is the document title in such cases than both 
> HTMLDocument and SVGDocument returning that seems better than separate 
> results.

Done.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 4 June 2007 22:33:52 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:56 UTC