wasinger / htmlpagedom

jQuery-inspired DOM manipulation extension for Symfony's Crawler
MIT License
346 stars 50 forks source link

Broken compatibility to Symfony 2.8 #8

Closed wasinger closed 8 years ago

wasinger commented 9 years ago

HtmlPageDom does not work with Symfony 2.8 because of the following changes in the DomCrawler component:

drone076 commented 8 years ago

Hi there! Any chances to fix this issue?

wasinger commented 8 years ago

Of course I'm planning to make it compatible to Symfony 2.8 and 3, but this will require quite some refactoring and I currently do not have the time to work on this. Maybe some time next near...

RubenHarms commented 8 years ago

+1 for this fix!

Geczy commented 8 years ago

+1 for symfony 3, can't use Laravel 5.2 without it

digilist commented 8 years ago

Are there any updates on this issue? Can you also try to support Symfony 3.0?

Do you have any recent changes? Probably, we can help you out.

Geczy commented 8 years ago

Yes it's been three months, have you found any time since then?

wasinger commented 8 years ago

Didn't have the time to work on this yet. But pull requests are strongly welcome! Please provide unit tests for all refactorings.

The main challenges are probably:

wasinger commented 8 years ago

As I noticed only today, since the 2.8.3 release of Symfony HTMLPageDom works with Symfony 2.8! (in 2.8.3, the changes in the 2.8 version of the Symfony DomCrawler component that broke HtmlPageDom have been reverted). I have tagged a new release 1.2.2 that allows symfony/dom-crawler ^2.8.3 in composer.json.

symfony/css-selector is allowed in 3.x versions and should work without problems, but symfony/dom-crawler 3.x does not work.

Since this issue is titled "Broken compatibility to Symfony 2.8" and the two Symfony issues mentioned in the first post are closed, I will close this issue now. For Symfony 3 compatibility I will open a new one: #11.