minor #20505 [DOMCrawler] Bug fixed (Imangazaliev)
minor #20505 [DOMCrawler] Bug fixed (Imangazaliev)

This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #20505).

Discussion
----------

[DOMCrawler] Bug fixed

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT
| Doc PR        | reference to the documentation PR, if any

Commits
-------

6c3150d [DOMCrawler] Bug fixed

Triiistan/symfony,jjanvier/symfony,apfelbox/symfony,bendavies/symfony,Triiistan/symfony,garak/symfony,bendavies/symfony,romaricdrigon/symfony,shieldo/symfony,gnat42/symfony,damienalexandre/symfony,Nyholm/symfony,1ed/symfony,phramz/symfony,dzuelke/symfony,curry684/symfony,fabpot/symfony,Padam87/symfony,jjanvier/symfony,mnapoli/symfony,hhamon/symfony,chrisguitarguy/symfony,sstok/symfony,mvhirsch/symfony,jderusse/symfony,chalasr/symfony,mpdude/symfony,e-moe/symfony,zorn-v/symfony,smatyas/symfony,dbu/symfony,Triiistan/symfony,andrerom/symfony,tucksaun/symfony,Pierstoval/symfony,phramz/symfony,oleg-andreyev/symfony,docteurklein/symfony,curry684/symfony,chrisguitarguy/symfony,codeclimate-testing/symfony,apfelbox/symfony,lstrojny/symfony,nasimnabavi/symfony,sstok/symfony,Ener-Getick/symfony,docteurklein/symfony,Engerim/symfony,jjanvier/symfony,chrisguitarguy/symfony,Tobion/symfony,jean-gui/symfony,mweimerskirch/symfony,vincentaubert/symfony,nasimnabavi/symfony,Soullivaneuh/symfony,gonzalovilaseca/symfony,Koc/symfony,romaricdrigon/symfony,iltar/symfony,stof/symfony,teohhanhui/symfony,inso/symfony,MatTheCat/symfony,Soullivaneuh/symfony,hason/symfony,Koc/symfony,Amo/symfony,romaricdrigon/symfony,pamil/symfony,lepiaf/symfony,Slamdunk/symfony,Einenlum/symfony,backbone87/symfony,maidmaid/symfony,dzuelke/symfony,Pierstoval/symfony,mihai-stancu/symfony,jvasseur/symfony,frankdejonge/symfony,Deamon/symfony,Pierstoval/symfony,docteurklein/symfony,Padam87/symfony,Taluu/symfony,Engerim/symfony,Deamon/symfony,Taluu/symfony,Triiistan/symfony,jean-gui/symfony,csarrazi/symfony,OskarStark/symfony,mweimerskirch/symfony,xabbuh/symfony,michaelperrin/symfony,romainneutron/symfony,zerkms/symfony,HeahDude/symfony,jakubsacha/symfony,mweimerskirch/symfony,deguif/symfony,nicolas-grekas/symfony,inso/symfony,tgalopin/symfony,oleg-andreyev/symfony,dzuelke/symfony,romaricdrigon/symfony,Amo/symfony,iltar/symfony,chrisguitarguy/symfony,andrerom/symfony,Nyholm/symfony,d-ph/symfony,Ener-Getick/symfony,ajgarlag/symfony,DavidGarciaCat/symfony,smatyas/symfony,pamil/symfony,frankdejonge/symfony,dbu/symfony,stof/symfony,Engerim/symfony,ro0NL/symfony,derrabus/symfony,codeclimate-testing/symfony,ajgarlag/symfony,hhamon/symfony,Soullivaneuh/symfony,mvhirsch/symfony,c960657/symfony,gimler/symfony,gencer/symfony,Taluu/symfony,iltar/symfony,jakubsacha/symfony,ro0NL/symfony,romainneutron/symfony,Simperfit/symfony,ogizanagi/symfony,klandaika/symfony,pyrech/symfony,pierredup/symfony,GuilhemN/symfony,Deamon/symfony,Pierstoval/symfony,derrabus/symfony,MatTheCat/symfony,Aliance/symfony,GuilhemN/symfony,garak/symfony,garak/symfony,klandaika/symfony,teohhanhui/symfony,symfony/symfony,jean-gui/symfony,apetitpa/symfony,pyrech/symfony,arjenm/symfony,maidmaid/symfony,chalasr/symfony,derrabus/symfony,SaschaDens/symfony,Triiistan/symfony,joelwurtz/symfony,pamil/symfony,1ed/symfony,SaschaDens/symfony,yceruto/symfony,hacfi/symfony,kbond/symfony,klandaika/symfony,jakzal/symfony,symfony/symfony,c960657/symfony,tucksaun/symfony,deguif/symfony,okdana/symfony,smatyas/symfony,jzawadzki/symfony,andreia/symfony,hhamon/symfony,mnapoli/symfony,chrisguitarguy/symfony,jjanvier/symfony,nicolas-grekas/symfony,apetitpa/symfony,d-ph/symfony,sroze/symfony,mihai-stancu/symfony,ro0NL/symfony,Amo/symfony,vincentaubert/symfony,Einenlum/symfony,kbond/symfony,neemzy/symfony,codeclimate-testing/symfony,Simperfit/symfony,Ener-Getick/symfony,Tobion/symfony,nasimnabavi/symfony,SpacePossum/symfony,weaverryan/symfony,lyrixx/symfony,docteurklein/symfony,apfelbox/symfony,romainneutron/symfony,maidmaid/symfony,yceruto/symfony,SpacePossum/symfony,GuilhemN/symfony,dmaicher/symfony,HeahDude/symfony,pierredup/symfony,alekitto/symfony,jvasseur/symfony,tucksaun/symfony,WhiteEagle88/symfony,inso/symfony,tucksaun/symfony,aeoris/symfony,arjenm/symfony,GuilhemN/symfony,dbu/symfony,okdana/symfony,arjenm/symfony,localheinz/symfony,c960657/symfony,OskarStark/symfony,ragboyjr/symfony,Ener-Getick/symfony,gencer/symfony,hason/symfony,alekitto/symfony,gnat42/symfony,bendavies/symfony,jderusse/symfony,Simperfit/symfony,romainneutron/symfony,sstok/symfony,gnat42/symfony,ogizanagi/symfony,josephdpurcell/symfony,shieldo/symfony,gimler/symfony,iltar/symfony,zerkms/symfony,teohhanhui/symfony,ro0NL/symfony,HeahDude/symfony,aeoris/symfony,lyrixx/symfony,mpdude/symfony,mvhirsch/symfony,gnat42/symfony,dzuelke/symfony,kbond/symfony,backbone87/symfony,jvasseur/symfony,gonzalovilaseca/symfony,andreia/symfony,bendavies/symfony,ajgarlag/symfony,andrerom/symfony,teohhanhui/symfony,sgehrig/symfony,SpacePossum/symfony,maidmaid/symfony,gimler/symfony,damienalexandre/symfony,phramz/symfony,docteurklein/symfony,chalasr/symfony,inso/symfony,josephdpurcell/symfony,voronkovich/symfony,voronkovich/symfony,e-moe/symfony,xabbuh/symfony,dmaicher/symfony,jderusse/symfony,Strate/symfony,frankdejonge/symfony,ragboyjr/symfony,sstok/symfony,OndraM/symfony,jderusse/symfony,josephdpurcell/symfony,smatyas/symfony,Soullivaneuh/symfony,mnapoli/symfony,zcodes/symfony,paradajozsef/symfony,Simperfit/symfony,OskarStark/symfony,Deamon/symfony,WhiteEagle88/symfony,klandaika/symfony,Ener-Getick/symfony,OndraM/symfony,stof/symfony,SpacePossum/symfony,DavidGarciaCat/symfony,paradajozsef/symfony,shieldo/symfony,mvhirsch/symfony,1ed/symfony,ajgarlag/symfony,Ener-Getick/symfony,tgalopin/symfony,backbone87/symfony,symfony/symfony,d-ph/symfony,damienalexandre/symfony,pyrech/symfony,joelwurtz/symfony,Einenlum/symfony,localheinz/symfony,weaverryan/symfony,sgehrig/symfony,lstrojny/symfony,smatyas/symfony,d-ph/symfony,Padam87/symfony,paradajozsef/symfony,tgalopin/symfony,OndraM/symfony,oleg-andreyev/symfony,mpdude/symfony,zcodes/symfony,mihai-stancu/symfony,Einenlum/symfony,hacfi/symfony,aeoris/symfony,zorn-v/symfony,csarrazi/symfony,romainneutron/symfony,Strate/symfony,OndraM/symfony,klandaika/symfony,gonzalovilaseca/symfony,michaelperrin/symfony,dunglas/symfony,gencer/symfony,Slamdunk/symfony,jjanvier/symfony,tgalopin/symfony,gimler/symfony,dunglas/symfony,apetitpa/symfony,andreia/symfony,weaverryan/symfony,OndraM/symfony,Taluu/symfony,1ed/symfony,pierredup/symfony,lyrixx/symfony,GuilhemN/symfony,jakzal/symfony,SaschaDens/symfony,hacfi/symfony,gonzalovilaseca/symfony,WhiteEagle88/symfony,mihai-stancu/symfony,weaverryan/symfony,garak/symfony,Padam87/symfony,ogizanagi/symfony,sstok/symfony,jzawadzki/symfony,phramz/symfony,SaschaDens/symfony,jakubsacha/symfony,apfelbox/symfony,jean-gui/symfony,mihai-stancu/symfony,dmaicher/symfony,fabpot/symfony,Nyholm/symfony,ogizanagi/symfony,arjenm/symfony,sroze/symfony,xabbuh/symfony,SaschaDens/symfony,OskarStark/symfony,derrabus/symfony,ragboyjr/symfony,apetitpa/symfony,shieldo/symfony,hason/symfony,yceruto/symfony,sgehrig/symfony,okdana/symfony,apfelbox/symfony,dunglas/symfony,lepiaf/symfony,localheinz/symfony,voronkovich/symfony,frankdejonge/symfony,jakubsacha/symfony,jzawadzki/symfony,mnapoli/symfony,inso/symfony,mpdude/symfony,vincentaubert/symfony,SpacePossum/symfony,zerkms/symfony,Nyholm/symfony,mweimerskirch/symfony,HeahDude/symfony,joelwurtz/symfony,Slamdunk/symfony,symfony/symfony,Aliance/symfony,voronkovich/symfony,paradajozsef/symfony,Koc/symfony,mnapoli/symfony,alekitto/symfony,sroze/symfony,Koc/symfony,pyrech/symfony,Soullivaneuh/symfony,mweimerskirch/symfony,Strate/symfony,curry684/symfony,chalasr/symfony,vincentaubert/symfony,alekitto/symfony,kbond/symfony,michaelperrin/symfony,Slamdunk/symfony,nicolas-grekas/symfony,neemzy/symfony,dbu/symfony,zerkms/symfony,zcodes/symfony,dmaicher/symfony,michaelperrin/symfony,DavidGarciaCat/symfony,zcodes/symfony,andreia/symfony,Padam87/symfony,csarrazi/symfony,Deamon/symfony,hhamon/symfony,neemzy/symfony,MatTheCat/symfony,ragboyjr/symfony,joelwurtz/symfony,nasimnabavi/symfony,deguif/symfony,Tobion/symfony,e-moe/symfony,pamil/symfony,Amo/symfony,jvasseur/symfony,e-moe/symfony,lyrixx/symfony,fabpot/symfony,fabpot/symfony,yceruto/symfony,Simperfit/symfony,jakzal/symfony,deguif/symfony,MatTheCat/symfony,xabbuh/symfony,Amo/symfony,stof/symfony,curry684/symfony,zorn-v/symfony,dbu/symfony,jakzal/symfony,sgehrig/symfony,dzuelke/symfony,andrerom/symfony,sroze/symfony,jakubsacha/symfony,damienalexandre/symfony,lstrojny/symfony,codeclimate-testing/symfony,nicolas-grekas/symfony,Tobion/symfony,Aliance/symfony,mvhirsch/symfony,localheinz/symfony,lepiaf/symfony,oleg-andreyev/symfony,pierredup/symfony,c960657/symfony,zorn-v/symfony