Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Update Crawler.php#7963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Update Crawler.php#7963
Uh oh!
There was an error while loading.Please reload this page.
Conversation
If HTML is not well-formed XML parsing goes wrong.
fabpot commentedMay 7, 2013
As this is a new method in 2.3, I would rather add an argument to the Perhaps that we should then find another name for the method itself (instead of |
This PR was merged into the master branch.Discussion----------Update Crawler.phpIf HTML is not well-formed XML parsing goes wrong.Could be useful create another method returning XML and XHTML in a `well-formed` standard?Commits-------0a26641 Update Crawler.php
jakzal commentedMay 10, 2013
@fabpot@spil-giacomo the node argument in the In PHP 5.3.3 one of the tests fails: |
ghost commentedMay 11, 2013
Yes, could be a solution now having one method to switch. I agree. |
This PR was merged into the master branch.Discussion----------[DomCrawler] Fixed the Crawler::html() method for early PHP versions| Q | A| ------------- | ---| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes, but not on travis (segfault)| Fixed tickets |#7963| License | MIT| Doc PR | -Node argument was added to the [`DOMDocument::saveHTML()`](http://php.net/manual/en/domdocument.savehtml.php) in PHP 5.3.6. Seehttp://php.net/manual/en/domdocument.savehtml.php.It's not a nice looking solution, but seems to be the only option. Condition should be removed once PHP dependency goes over 5.3.6.Commits-------a4e3ebf [DomCrawler] Fixed the Crawler::html() method for PHP versions earlier than 5.3.6.
If HTML is not well-formed XML parsing goes wrong.
Could be useful create another method returning XML and XHTML in a
well-formedstandard?