visionmedia/php-selector — pull request #2 by Darhazer (2013-07-30 08:43:40+00:00)
Title: Allow using SelectorDOM on existing DOMDocument object

Instead of creating a new DOMDocument, allow passing of DOMDocument object. In this way the returned nodes will reference the original document. Also removed saving the $html and $dom as instance variables, since they are not used