Filtering in E4X

Posted by FB55 on Stack Overflow See other posts from Stack Overflow or by FB55
Published on 2010-05-25T17:26:29Z Indexed on 2010/05/25 18:11 UTC
Read the original article Hit count: 468

Filed under:
|
|

This is just a simple question. I'm currently using Mozilla's Rhino to develop a little webapp. As one step, I need to get a webpage and filter all of it's nodes. For doing that, I use E4X. I thought I could do this like that:

var pnodes = doc..*(p);

But that produces an error. How is it done right?

(BTW: this is just a step for increasing performance. The code already does well, it's just a bit slow.)

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about rhino