Skip to content
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] Fix BC break in assertions breaking Panther #36259

Merged
merged 1 commit into from Mar 30, 2020

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Mar 29, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
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).

@xabbuh
Copy link
Member

xabbuh commented Mar 30, 2020

I am not sure I understand how this is related to #35899. Whitespaces were not normalizes before either, were they?

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Mar 30, 2020

That's because we merged the patch in 5.0, where the default is now true.
The patch is still good for 4.4 because this won't break any existing test cases.

@nicolas-grekas
Copy link
Member

Thank you @dunglas.

@nicolas-grekas nicolas-grekas merged commit ff2c362 into symfony:4.4 Mar 30, 2020
This was referenced Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants