implementation of domCrawler for symfony 1.4