added support for phpquery/simple-html-dom