Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Merged
fabpot merged 1 commit intosymfony:4.4fromxabbuh:issue-35889
Mar 2, 2020

Conversation

@xabbuh
Copy link
Member

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#35889
LicenseMIT
Doc PR

Copy link
Contributor

@fancywebfancyweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@xabbuh
Copy link
MemberAuthor

@fancyweb Indeed, I fixed it.

fancyweb reacted with thumbs up emoji

@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commit0936a4e intosymfony:4.4Mar 2, 2020
@xabbuhxabbuh deleted the issue-35889 branchMarch 2, 2020 12:27
This was referencedMar 27, 2020
nicolas-grekas added a commit that referenced this pull requestMar 30, 2020
…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
Copy link

Maybe we could add a hint toassertSelectorTextSame into the error message

@trigger_error(sprintf('"%s()" will normalize whitespaces by default in Symfony 5.0, set the second "$normalizeWhitespace" argument to false to retrieve the non-normalized version of the text.',__METHOD__),E_USER_DEPRECATED);
? I think many people had to research this issue

@xabbuh
Copy link
MemberAuthor

What issue would that solve?

@flaushi
Copy link

I can imagine may people using$crawler->text() in their tests.

They all have to read through this issue and PR to finally see that there is a new assertionassertSelectorTextSame they can use to prevent the deprecation error. Kind of "documentation in issue"

mrardon reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@fancywebfancywebfancyweb approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

5 participants

@xabbuh@fabpot@flaushi@fancyweb@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp