Closed GoogleCodeExporter closed 9 years ago
Hi,
To set the text content, you should use
svg_text.text = "new, verbose and long text"
instead of textContent. I'm not sure why it worked in previous versions and not
now, but with "text" your example seems to work - does it for you too ?
- Pierre
Original comment by pierre.q...@gmail.com
on 9 Mar 2013 at 7:39
The form element.text was not documented. I searched for the operation in
javascript documentation and I found element.textContent as the official
attribute and was working previously. It is ok if the fom element.text is
adopted, but it must be clearly satated in the getting started documentation,
otherwise users may get frustrated with textContent not working.
Original comment by ca...@nce.ufrj.br
on 9 Mar 2013 at 5:03
It is actually documented in the section "handling of HTML documents" of the
documentation :
"the content of a DOM node can be read or modified by the text or html
attributes, corresponding to innerText (or textContent) and innerHTML
respectively, in Javascript"
- Pierre
Original comment by pierre.q...@gmail.com
on 11 Mar 2013 at 8:25
Original comment by pierre.q...@gmail.com
on 17 Mar 2013 at 11:29
Original issue reported on code.google.com by
ca...@nce.ufrj.br
on 8 Mar 2013 at 10:23