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

Re: [whatwg] Document.title for SVG documents

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 4 Feb 2014 11:05:44 +0000
Message-ID: <CADnb78gWL-Le2SUcOSixnovYPGKueigUzA2bV4tUOwjnoaK_ZQ@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: WHATWG <whatwg@whatwg.org>, Ian Hickson <ian@hixie.ch>
On Tue, Feb 4, 2014 at 12:25 AM, Cameron McCormack <cam@mcc.id.au> wrote:
> OK, how about: if the document element is an <html:html>, we choose the
> first <html:title> in document order; if the document element is an
> <svg:svg>, we choose the first child <svg:title> of the document element;
> otherwise, null.

This seems good.


> This still is going to produce "incorrect" results for things like:
>
>   <!DOCTYPE html>
>   <svg>
>     <foreignObject>
>       <title>blah</title>
>     </foreignObject>
>   </svg>

Given that this does not define a html:title in html:head it's
non-conforming anyway so that seems fine. (I'm assuming we're using
HTML parsing rules of today.)


-- 
http://annevankesteren.nl/
Received on Tuesday, 4 February 2014 11:06:10 UTC

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