Hi,
Was ist lastChild für ein Objekt?
<ul></ul>
Und wieso willst du in eine Liste einen TextNode einhängen?
Das sollte zwar gehen, so lange es sich um reinen Whitespace handelt (wäre dann aber nicht sonderlich sinnvoll).
"Richtiger" Text hat als Kindelement in einer UL jedenfalls nichts verloren - sondern erst in einem darunter hängenden LI.
MfG ChrisB
--
Light travels faster than sound - that's why most people appear bright until you hear them speak.
Light travels faster than sound - that's why most people appear bright until you hear them speak.