W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2014

Re: [whatwg] Document.title for SVG documents

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 3 Feb 2014 19:44:28 +0000 (UTC)
To: Cameron McCormack <cam@mcc.id.au>
Message-ID: <alpine.DEB.2.00.1402031943100.30855@ps20323.dreamhostps.com>
Cc: whatwg@whatwg.org
On Sat, 1 Feb 2014, Cameron McCormack wrote:
>
> Currently, HTML defines Document.title on SVG documents to defer to 
> whatever the SVG specification defines for SVGDocument.title.  The 
> SVGDocument interface has gone away, so this will need to be updated. 
> From some basic testing, it looks like SVG needs the same behaviour as 
> HTML -- first <title> element in the document, plus the white space 
> collapsing behaviour.
> 
> Do you want to just handle that all in HTML?  I'm not sure there's much 
> value to duplicating either the searching for the title element or the 
> white space collapsing behaviour in SVG itself.

I'm all for handling it in one place. What precisely do you want the 
behaviour to be? (Consider HTML-in-SVG and SVG-in-HTML also -- "the first 
<svg:title> element" may come after "the first <html:title> element", and 
vice versa. Also consider when one or the other is "primary" but the 
relevant element is absent.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 3 February 2014 19:45:30 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:15 UTC