You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #49195 [Crawler] Fix regression where cdata nodes will return empty string (NanoSector)
This PR was submitted for the 6.4 branch but it was merged into the 6.3 branch instead.
Discussion
----------
[Crawler] Fix regression where cdata nodes will return empty string
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | N/A
| License | MIT
| Doc PR | N/A
<!--
Replace this notice by a short README for your feature/bugfix.
This will help reviewers and should be a good start for the documentation.
Additionally (see https://symfony.com/releases):
- Always add tests and ensure they pass.
- Bug fixes must be submitted against the lowest maintained branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too).
- Features and deprecations must be submitted against the latest branch.
- For new features, provide some code snippets to help understand usage.
- Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
- Never break backward compatibility (see https://symfony.com/bc).
-->
Fixes a regression caused by the fix to #48682 where `<script>` tags would return empty string on the innerContent call, where in 6.2 this did work.
Attached is a zipped PHPUnit test case used to verify the regression on 6.2 with a screenshot of its result.
[CrawlerInnerTextTest.zip](https://github.com/symfony/symfony/files/10567760/CrawlerInnerTextTest.zip)

Commits
-------
23c1dda [Crawler] Fix regression where cdata nodes will return empty string
0 commit comments