Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Add support for context nodes #2

Closed
elazar opened this issue Jun 27, 2015 · 1 comment
Closed

Add support for context nodes #2

elazar opened this issue Jun 27, 2015 · 1 comment

Comments

@elazar
Copy link
Contributor

elazar commented Jun 27, 2015

DOMXPath->query() has a second parameter, $contextNode, that supports querying in the context of a specific node rather than relative to the document root. It would be nice if Zend\Dom\Query->queryXPath() provided equivalent support.

If the maintainers agree that it's reasonable to add this feature, I'd be happy to submit a PR that implements it. If so, any specifics on preferences regarding that implementation would be appreciated.

@weierophinney
Copy link
Member

@elazar GO FOR EEEETTTTT! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants