Question about #text



Let's say I have the following:

<div id="master">
This is master part 1
<div id="slave">
This is slave
</div>
This is master part 2
</div>

I can call document.getElementById('master').childNodes.length and get
3.

My question is this: how can I determine that childNodes[0] is a #text
node and how can I change it without affecting the rest (i.e. the
slave div node and the second #text node).

Thanks.

.



Relevant Pages

  • Re: Replikations Frage
    ... vom Master auf den Slave kopiert hast und dabei die Permissions auf ... Die Datenbanken auf den Slave Server laufen ohne Probleme. ... # If you want to know which options a program support, ...
    (de.comp.datenbanken.mysql)
  • Re: When caveman Uhg invented fire
    ... be a business owner. ... But even the smallest "ownership" makes one a slave. ... Any "slave" can become the master. ...
    (alt.lang.asm)
  • Re: One-sided authentication for small micros?
    ... The master has a lookup table of all 'known' slave id's. ... This would reset all the slave keys to their lookup values. ... decides that it is a valid slave and starts to communicate with the slave. ...
    (sci.crypt)
  • Re: FIXMBR redux
    ... William, I did the best I could for you under the circumstances and I did ... >> "To remove the recovery console, delete the cmdcons folder from the root ... > drive as Master and formatted it anew, as Active and Primary, ... I then jumpered it as Slave, ...
    (microsoft.public.windowsxp.basics)
  • Re: Buffered IO and pipes
    ... master with as little waiting around as possible, ... when another slave would actually be ready to write. ... create a 64kB shared memory buffer for every ... "X" to the slave's pipe. ...
    (comp.unix.solaris)