[parenscript-devel] How to generate element[i].childNodes[0].nodeValue

Wout Perquin wout.perquin at skynet.be
Tue Nov 24 20:43:48 UTC 2009


On Tue, 2009-11-24 at 19:42 +0000, Wout Perquin wrote:
> Hi,
> I would like to generate : 
> 	"var value = element[i].childNode[0].nodeValue" 
> in one sentence.
> 
> Currently I have a workaround :
> (ps:ps
>  (let ((foo (aref element i))
>        (value (slot-value (aref foo.child-nodes 0)'node-value)))))
> which renders :
> "var foo = element[i];
> var value = foo.childNodes[0].nodeValue;"
> 
> Is there another more direct way ?
> Thanks in advance.
> Wout Perquin





More information about the parenscript-devel mailing list