ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- Symfony/Component/DomCrawler/CHANGELOG.md000064400000002202152353512720014023 0ustar00CHANGELOG ========= 2.4.0 ----- * `Crawler::addXmlContent()` removes the default document namespace again if it's an only namespace. * added support for automatic discovery and explicit registration of document namespaces for `Crawler::filterXPath()` and `Crawler::filter()` * improved content type guessing in `Crawler::addContent()` * [BC BREAK] `Crawler::addXmlContent()` no longer removes the default document namespace 2.3.0 ----- * added Crawler::html() * [BC BREAK] Crawler::each() and Crawler::reduce() now return Crawler instances instead of DomElement instances * added schema relative URL support to links * added support for HTML5 'form' attribute 2.2.0 ----- * added a way to set raw path to the file in FileFormField - necessary for simulating HTTP requests 2.1.0 ----- * added support for the HTTP PATCH method * refactored the Form class internals to support multi-dimensional fields (the public API is backward compatible) * added a way to get parsing errors for Crawler::addHtmlContent() and Crawler::addXmlContent() via libxml functions * added support for submitting a form without a submit button Symfony/Component/DomCrawler/LICENSE000064400000002051152353512720013221 0ustar00Copyright (c) 2004-2014 Fabien Potencier Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Symfony/Component/DomCrawler/composer.json000064400000001552152353512720014743 0ustar00{ "name": "symfony/dom-crawler", "type": "library", "description": "Symfony DomCrawler Component", "keywords": [], "homepage": "http://symfony.com", "license": "MIT", "authors": [ { "name": "Fabien Potencier", "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "http://symfony.com/contributors" } ], "require": { "php": ">=5.3.3" }, "require-dev": { "symfony/css-selector": "~2.0" }, "suggest": { "symfony/css-selector": "" }, "autoload": { "psr-0": { "Symfony\\Component\\DomCrawler\\": "" } }, "target-dir": "Symfony/Component/DomCrawler", "minimum-stability": "dev", "extra": { "branch-alias": { "dev-master": "2.4-dev" } } } Symfony/Component/DomCrawler/README.md000064400000001545152353512720013502 0ustar00DomCrawler Component ==================== DomCrawler eases DOM navigation for HTML and XML documents. If you are familiar with jQuery, DomCrawler is a PHP equivalent: use Symfony\Component\DomCrawler\Crawler; $crawler = new Crawler(); $crawler->addContent('

Hello World!

'); print $crawler->filterXPath('descendant-or-self::body/p')->text(); If you are also using the CssSelector component, you can use CSS Selectors instead of XPath expressions: use Symfony\Component\DomCrawler\Crawler; $crawler = new Crawler(); $crawler->addContent('

Hello World!

'); print $crawler->filter('body > p')->text(); Resources --------- You can run the unit tests with the following command: $ cd path/to/Symfony/Component/DomCrawler/ $ composer.phar install $ phpunit