[whatwg] Document.title for SVG documents

Anne van Kesteren annevk at annevk.nl
Tue Feb 4 03:05:44 PST 2014


On Tue, Feb 4, 2014 at 12:25 AM, Cameron McCormack <cam at 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/



More information about the whatwg mailing list