Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[DomCrawler] prevent deprecation being triggered from assertion#35899
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
xabbuh commentedFeb 28, 2020
| Q | A |
|---|---|
| Branch? | 4.4 |
| Bug fix? | yes |
| New feature? | no |
| Deprecations? | no |
| Tickets | Fix#35889 |
| License | MIT |
| Doc PR |
fancyweb left a comment
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.
As pointed in the issue, don't we need to also updatehttps://github.com/symfony/dom-crawler/blob/4.4/Test/Constraint/CrawlerSelectorTextSame.php#L48?
xabbuh commentedMar 1, 2020
@fancyweb Indeed, I fixed it. |
fabpot commentedMar 2, 2020
Thank you@xabbuh. |
…dunglas)This PR was merged into the 4.4 branch.Discussion----------[DomCrawler] Fix BC break in assertions breaking Panther| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | yes| New feature? | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets | n/a| License | MIT| Doc PR | n/a#35899 introduces a BC break: browsers aren't able to retrieve the non-normalized version of a text. According to the HTML spec, whitespaces are always normalized. Because of this patch, these assertions doesn't work with Panther anymore.Also, this change probably hurts other users because getting the non-normalized version is almost never expected. (I'm in favor of **not** supporting retrieving the non-normalized version at all, for consistency with browsers and the spec, but it's another topic).Commits-------7af07c8 [DomCrawler] Fix BC break in assertions breaking Panther
flaushi commentedApr 2, 2020
Maybe we could add a hint to
|
xabbuh commentedApr 2, 2020
What issue would that solve? |
flaushi commentedApr 2, 2020
I can imagine may people using They all have to read through this issue and PR to finally see that there is a new assertion |