W3C home > Mailing lists > Public > www-svg@w3.org > June 2008

Re: Why is document.title immutable ?

From: Ruud Steltenpool <svg@steltenpower.com>
Date: Mon, 09 Jun 2008 22:57:51 +0200
Message-ID: <484D994F.2010105@steltenpower.com>
To: www-svg@w3.org

>> I'd like to set document.title

> Why don't you modify the textual content of the 'svg' element's
> <title> child, which the attribute is supposed to represent?

That is actually what i tried, but forgot one step in DOM traveling.
For Googling purposes, here's the working code: 
document.getElementsByTagNameNS("http://www.w3.org/2000/svg","title")[0].firstChild.nodeValue="myNewTitle";
Received on Monday, 9 June 2008 20:58:33 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:39 GMT