Select Nodes #33

Closed
natebrunette opened this Issue Jul 22, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Is there a way to select a specific node of the whole object? I was thinking something along the lines of a CSS selector.

Contributor

Swahvay commented Nov 11, 2012

There is not currently a way to do this. It often times doesn't make sense since XHP elements can render into other XHP elements making the generated tree fairly different than the pre-rendered tree. If your particular use case has a need for this, it would be fairly easy to do (albeit not altogether performantly) by using the optional parameter to getChildren().

@Swahvay Swahvay closed this Nov 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment