lewisje / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Assigning to a textContent doesn't seem to work #410

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
See the tests/non-licensed/kurt1/kurt_files/clickme.svg, clicking should
change the description text and it does not.

This is also an issue with Dojo GFX Text shape.

Original issue reported on code.google.com by opich...@gmail.com on 12 Nov 2009 at 7:57

GoogleCodeExporter commented 8 years ago

Original comment by bradneub...@gmail.com on 12 Nov 2009 at 8:15

GoogleCodeExporter commented 8 years ago
Until now I used
new_text = document.createTextNode("new text content", true)
element.removeChild(element.firstChild)
element.appendChild(new_text)

as a workaround, instead of using element.textContent = "new text content"

Original comment by f.occhip...@gmail.com on 23 Mar 2010 at 2:20