Properly change the kind of the given attribute in SetAttributeNode
Properly change the kind of the given attribute in SetAttributeNode

The given argument may have special meaning for the element to which we add it,
and thus may have a specific representation to which we should switch the
attribute current's value.

Fixes #18357.

paulrouget/servo,fiji-flo/servo,eddyb/servo,DominoTree/servo,avadacatavra/servo,paulrouget/servo,pyfisch/servo,jimberlage/servo,eddyb/servo,emilio/servo,mbrubeck/servo,CJ8664/servo,notriddle/servo,CJ8664/servo,mattnenterprise/servo,avadacatavra/servo,emilio/servo,KiChjang/servo,dati91/servo,KiChjang/servo,anthgur/servo,splav/servo,fiji-flo/servo,mattnenterprise/servo,cbrewster/servo,peterjoel/servo,ConnorGBrewster/servo,notriddle/servo,szeged/servo,sadmansk/servo,emilio/servo,szeged/servo,nnethercote/servo,szeged/servo,rnestler/servo,dati91/servo,mbrubeck/servo,szeged/servo,mbrubeck/servo,KiChjang/servo,peterjoel/servo,paulrouget/servo,canaltinova/servo,thiagopnts/servo,cbrewster/servo,eddyb/servo,peterjoel/servo,canaltinova/servo,szeged/servo,paulrouget/servo,jimberlage/servo,larsbergstrom/servo,upsuper/servo,SimonSapin/servo,eddyb/servo,larsbergstrom/servo,DominoTree/servo,larsbergstrom/servo,avadacatavra/servo,sadmansk/servo,splav/servo,peterjoel/servo,SimonSapin/servo,avadacatavra/servo,CJ8664/servo,eddyb/servo,anthgur/servo,anthgur/servo,rnestler/servo,DominoTree/servo,notriddle/servo,nnethercote/servo,anthgur/servo,splav/servo,eddyb/servo,upsuper/servo,emilio/servo,cbrewster/servo,SimonSapin/servo,splav/servo,dsandeephegde/servo,DominoTree/servo,peterjoel/servo,SimonSapin/servo,nnethercote/servo,SimonSapin/servo,saneyuki/servo,fiji-flo/servo,dsandeephegde/servo,CJ8664/servo,DominoTree/servo,DominoTree/servo,KiChjang/servo,larsbergstrom/servo,jimberlage/servo,dati91/servo,emilio/servo,cbrewster/servo,szeged/servo,canaltinova/servo,sadmansk/servo,paulrouget/servo,szeged/servo,canaltinova/servo,DominoTree/servo,cbrewster/servo,pyfisch/servo,paulrouget/servo,saneyuki/servo,emilio/servo,splav/servo,splav/servo,mattnenterprise/servo,nnethercote/servo,mbrubeck/servo,nnethercote/servo,notriddle/servo,cbrewster/servo,upsuper/servo,sadmansk/servo,dsandeephegde/servo,fiji-flo/servo,fiji-flo/servo,mbrubeck/servo,larsbergstrom/servo,larsbergstrom/servo,mattnenterprise/servo,splav/servo,KiChjang/servo,rnestler/servo,upsuper/servo,emilio/servo,mattnenterprise/servo,nnethercote/servo,fiji-flo/servo,thiagopnts/servo,avadacatavra/servo,emilio/servo,dsandeephegde/servo,avadacatavra/servo,dsandeephegde/servo,CJ8664/servo,pyfisch/servo,anthgur/servo,jimberlage/servo,saneyuki/servo,notriddle/servo,saneyuki/servo,CJ8664/servo,peterjoel/servo,pyfisch/servo,thiagopnts/servo,sadmansk/servo,ConnorGBrewster/servo,eddyb/servo,saneyuki/servo,mbrubeck/servo,ConnorGBrewster/servo,pyfisch/servo,pyfisch/servo,avadacatavra/servo,DominoTree/servo,dati91/servo,rnestler/servo,KiChjang/servo,notriddle/servo,nnethercote/servo,nnethercote/servo,saneyuki/servo,paulrouget/servo,notriddle/servo,rnestler/servo,upsuper/servo,dsandeephegde/servo,SimonSapin/servo,pyfisch/servo,sadmansk/servo,ConnorGBrewster/servo,eddyb/servo,DominoTree/servo,avadacatavra/servo,mattnenterprise/servo,canaltinova/servo,paulrouget/servo,peterjoel/servo,canaltinova/servo,peterjoel/servo,emilio/servo,dsandeephegde/servo,emilio/servo,paulrouget/servo,rnestler/servo,peterjoel/servo,jimberlage/servo,szeged/servo,saneyuki/servo,larsbergstrom/servo,saneyuki/servo,larsbergstrom/servo,saneyuki/servo,jimberlage/servo,dati91/servo,cbrewster/servo,dati91/servo,KiChjang/servo,dsandeephegde/servo,splav/servo,KiChjang/servo,jimberlage/servo,cbrewster/servo,KiChjang/servo,nnethercote/servo,anthgur/servo,upsuper/servo,sadmansk/servo,pyfisch/servo,rnestler/servo,paulrouget/servo,ConnorGBrewster/servo,canaltinova/servo,fiji-flo/servo,larsbergstrom/servo,notriddle/servo,szeged/servo,nnethercote/servo,peterjoel/servo,pyfisch/servo,dati91/servo,thiagopnts/servo,anthgur/servo,mbrubeck/servo,jimberlage/servo,thiagopnts/servo,sadmansk/servo,CJ8664/servo,canaltinova/servo,dati91/servo,mattnenterprise/servo,KiChjang/servo,szeged/servo,CJ8664/servo,ConnorGBrewster/servo,thiagopnts/servo,DominoTree/servo,upsuper/servo,pyfisch/servo,rnestler/servo,thiagopnts/servo,SimonSapin/servo,mattnenterprise/servo,splav/servo,larsbergstrom/servo,notriddle/servo,ConnorGBrewster/servo,thiagopnts/servo,saneyuki/servo,fiji-flo/servo,ConnorGBrewster/servo,mbrubeck/servo,splav/servo,notriddle/servo,jimberlage/servo,upsuper/servo,SimonSapin/servo,anthgur/servo