-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DomCrawler] Make masterminds/html5 as a required dependency of DomCrawler #44170
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DomCrawler] Make masterminds/html5 as a required dependency of DomCrawler #44170
Conversation
I'm not sure how HtmlSanitizer vs. DomCrawler correlates 🤔 nevertheless i think this makes the implementation more robust 👍 |
@ro0NL they correlate because the current implementation is basically an opt-in based on the mere presence of the parser. Having html-sanitizer as a component requiring the parser would opt-in people unexpectedly. This pr solves this. |
3ef6037
to
4dab9df
Compare
Can you target 6.1 now that exists? |
@tgalopin Can you rebase this PR on 6.1? Is it ready to be merged then? |
4dab9df
to
14aacda
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I completed the rebase)
Thank you @tgalopin. |
Looks like this is responsible for the grim regression outlined in #48950. |
html5-php is mandatory after symfony/symfony#44170
html5-php is mandatory after symfony/symfony#44170
html5-php is mandatory after symfony/symfony#44170
…esselb) This PR was merged into the 6.2 branch. Discussion ---------- docs(DomCrawler): remove hint about html5-php library html5-php is mandatory after symfony/symfony#44170 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 1be7e33 docs(DomCrawler): remove hint about html5-php library
Following the discussion on #43341 and how we will add a new HtmlSanitizer component to Symfony (#44144), it makes a lot of sense to require masterminds/html5 by default on the DomCrawler component. This PR does this and removes unnecessary checks for the library presence in the code.