Re: [whatwg] Document.title for SVG documents

> On Feb 1, 2014, at 9:03 PM, "Cameron McCormack" <cam@mcc.id.au> 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.

Could you be more specific about that? It is not just the first title element in the document, but the first direct child of the element root. A title nested in a group or graphical element has a different meaning and shall not be used as title. If there is a nested title element but no direct title child of the SVG root, then the document has no title. This distinction is important for accessibility.

> 
> 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.

Received on Sunday, 2 February 2014 06:02:17 UTC