Re: [whatwg] Document.title for SVG documents

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