Forum: Rails Spinoffs (closed, excessive spam) How to create Text node (element)?

Posted by AlannY (Guest)
on 2008-07-01 15:57
(Received via mailing list)
I'm searching for Prototype's alternative for

<document.createTextNode>

function.

<new Element('span')> not helps. I need a <Text> node (element) ;-)
Posted by Frederick Polgardy (Guest)
on 2008-07-01 16:03
(Received via mailing list)
There isn't one... Prototype doesn't have wrappers for text nodes.  What 
is
it specifically that you're trying to do that can't be done with the
built-in API, or by inserting text into elements?

On Tue, Jul 1, 2008 at 8:56 AM, AlannY <m@alanny.ru> wrote:

>
> I'm searching for Prototype's alternative for
>
> <document.createTextNode>
>
> function.
>
> <new Element('span')> not helps. I need a <Text> node (element) ;-)


--
Science answers questions; philosophy questions answers.
Posted by AlannY (Guest)
on 2008-07-01 20:37
(Received via mailing list)
> There isn't one... Prototype doesn't have wrappers for text nodes.

Fine ;-)
This topic is locked and can not be replied to.