|
|
 |
FN-FORUM: DHTML replacement of text nodes
date posted 5th August 2005 09:21
Hi,
Can anyone help me with a problem using DHTML?
I want to be able to replace a text node (nodeType=3) so that there is a
span around it to apply some styling.
Ideally, I want to be able to do this:
node.outerHTML = '' + node.innerHTML +
'';
But you can't do that with text nodes. I've tried the IE replaceNode, etc
but am having no luck.
Can anyone help me?
Many thanks,
Pete
_________________________________________
P e t e r E b d o n
Professional Software Engineering Ltd
Microsoft Certified Professional
Email : [EMAIL REMOVED]
Tel : +44(0)1235-838510
Fax : +44(0)1235-838501
Mobile : +44(0)7789-006662
Web : www.pseltd.com
|
 |
|