minor #18212 [DomCrawler] Use XML_ELEMENT_NODE in nodeType check (rvanlaak)
minor #18212 [DomCrawler] Use XML_ELEMENT_NODE in nodeType check (rvanlaak)

This PR was merged into the 2.3 branch.

Discussion
----------

[DomCrawler] Use XML_ELEMENT_NODE in nodeType check

| Q             | A
| ------------- | ---
| Branch?       | 2.3+
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Making use of the predefined dom constant `XML_ELEMENT_NODE` (which value is `1`) makes more sense while interpreting `parents()` it's functionality. See http://php.net/manual/en/dom.constants.php

Commits
-------

cffea91 Use XML_ELEMENT_NODE in nodeType check

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