Move Parser creation to its own function (issue #849).
Move Parser creation to its own function (issue #849).

This is the first step to implement innerHTML, as we need a way
create and initialize a parser object while setting the received
DOMString (which may be either text/html/whatever).

walac/servo,notriddle/servo,larsbergstrom/servo,zentner-kyle/servo,notriddle/servo,jdramani/servo,jimberlage/servo,ruud-v-a/servo,srbhklkrn/SERVOENGINE,runarberg/servo,szeged/servo,emilio/servo,mattnenterprise/servo,nrc/servo,echochamber/servo,snf/servo,rentongzhang/servo,WriterOfAlicrow/servo,caldwell/servo,jdramani/servo,dsandeephegde/servo,tempbottle/servo,evilpie/servo,steveklabnik/servo,ConnorGBrewster/servo,froydnj/servo,Adenilson/prototype-viewing-distance,ryancanhelpyou/servo,wpgallih/servo,codemac/servo,jimberlage/servo,saneyuki/servo,Shraddha512/servo,jdramani/servo,youprofit/servo,srbhklkrn/SERVOENGINE,j3parker/servo,thiagopnts/servo,pyfisch/servo,caldwell/servo,caldwell/servo,dsandeephegde/servo,rnestler/servo,rentongzhang/servo,fiji-flo/servo,dvberkel/servo,saratang/servo,srbhklkrn/SERVOENGINE,cbrewster/servo,thiagopnts/servo,mdibaiee/servo,pyfisch/servo,Shraddha512/servo,dagnir/servo,upsuper/servo,CJ8664/servo,deokjinkim/servo,fiji-flo/servo,upsuper/servo,indykish/servo,steveklabnik/servo,canaltinova/servo,pyfisch/servo,dhananjay92/servo,j3parker/servo,vks/servo,boghison/servo,avadacatavra/servo,CJ8664/servo,ruud-v-a/servo,A-deLuna/servo,KiChjang/servo,rixrix/servo,mattnenterprise/servo,mbrubeck/servo,rnestler/servo,kindersung/servo,jimberlage/servo,chotchki/servo,DominoTree/servo,tafia/servo,rnestler/servo,pyfisch/servo,jgraham/servo,j3parker/servo,shrenikgala/servo,jlegendary/servo,peterjoel/servo,paulrouget/servo,dvberkel/servo,pyecs/servo,rixrix/servo,DominoTree/servo,upsuper/servo,paulrouget/servo,aidanhs/servo,GreenRecycleBin/servo,shrenikgala/servo,s142857/servo,GreenRecycleBin/servo,evilpie/servo,codemac/servo,canaltinova/servo,brendandahl/servo,fiji-flo/servo,peterjoel/servo,evilpie/servo,sadmansk/servo,jimberlage/servo,dsandeephegde/servo,walac/servo,aweinstock314/servo,wartman4404/servo,bfrohs/servo,pgonda/servo,szeged/servo,emilio/servo,rixrix/servo,srbhklkrn/SERVOENGINE,runarberg/servo,meh/servo,karlito40/servo,cbrewster/servo,Shraddha512/servo,indykish/servo,larsbergstrom/servo,bjwbell/servo,anthgur/servo,canaltinova/servo,nnethercote/servo,jdramani/servo,dhananjay92/servo,wpgallih/servo,RenaudParis/servo,kindersung/servo,WriterOfAlicrow/servo,ryancanhelpyou/servo,Adenilson/prototype-viewing-distance,dvberkel/servo,jimberlage/servo,larsbergstrom/servo,DominoTree/servo,notriddle/servo,karlito40/servo,jimberlage/servo,akosel/servo,emilio/servo,g-k/servo,wartman4404/servo,DominoTree/servo,aidanhs/servo,j3parker/servo,saneyuki/servo,mt2d2/servo,AnthonyBroadCrawford/servo,GyrosOfWar/servo,dsandeephegde/servo,wpgallih/servo,notriddle/servo,bfrohs/servo,Shraddha512/servo,jimberlage/servo,avadacatavra/servo,mukilan/servo,tempbottle/servo,g-k/servo,boghison/servo,walac/servo,saratang/servo,huonw/servo,ConnorGBrewster/servo,GreenRecycleBin/servo,larsbergstrom/servo,dvberkel/servo,nick-thompson/servo,Shraddha512/servo,jgraham/servo,caldwell/servo,ryancanhelpyou/servo,peterjoel/servo,ruud-v-a/servo,ConnorGBrewster/servo,Adenilson/prototype-viewing-distance,sadmansk/servo,dhananjay92/servo,jdramani/servo,wpgallih/servo,indykish/servo,dhananjay92/servo,upsuper/servo,GreenRecycleBin/servo,KiChjang/servo,aidanhs/servo,SimonSapin/servo,pyecs/servo,hyowon/servo,tempbottle/servo,luniv/servo,mdibaiee/servo,wpgallih/servo,bfrohs/servo,canaltinova/servo,deokjinkim/servo,mt2d2/servo,nrc/servo,mbrubeck/servo,saratang/servo,nerith/servo,ryancanhelpyou/servo,GyrosOfWar/servo,anthgur/servo,hyowon/servo,sadmansk/servo,AnthonyBroadCrawford/servo,mukilan/servo,emilio/servo,AnthonyBroadCrawford/servo,dmarcos/servo,mbrubeck/servo,emilio/servo,codemac/servo,nnethercote/servo,nerith/servo,meh/servo,SimonSapin/servo,dmarcos/servo,jlegendary/servo,emilio/servo,SimonSapin/servo,cbrewster/servo,wpgallih/servo,huonw/servo,jlegendary/servo,snf/servo,zhangjunlei26/servo,ryancanhelpyou/servo,mdibaiee/servo,notriddle/servo,notriddle/servo,mdibaiee/servo,splav/servo,rixrix/servo,rixrix/servo,akosel/servo,dagnir/servo,dati91/servo,sadmansk/servo,szeged/servo,snf/servo,huonw/servo,cbrewster/servo,pyfisch/servo,nnethercote/servo,upsuper/servo,mbrubeck/servo,huonw/servo,youprofit/servo,eddyb/servo,A-deLuna/servo,KiChjang/servo,samfoo/servo,splav/servo,sadmansk/servo,deokjinkim/servo,avadacatavra/servo,peterjoel/servo,dmarcos/servo,akosel/servo,KiChjang/servo,hyowon/servo,meh/servo,SimonSapin/servo,meh/servo,echochamber/servo,anthgur/servo,RenaudParis/servo,zhangjunlei26/servo,zhangjunlei26/servo,canaltinova/servo,codemac/servo,mattnenterprise/servo,dati91/servo,michaelwu/servo,deokjinkim/servo,shrenikgala/servo,tschneidereit/servo,paulrouget/servo,eddyb/servo,zhangjunlei26/servo,saratang/servo,juzer10/servo,fiji-flo/servo,tempbottle/servo,samfoo/servo,sadmansk/servo,luniv/servo,michaelwu/servo,shrenikgala/servo,rixrix/servo,ruud-v-a/servo,karlito40/servo,bjwbell/servo,g-k/servo,mt2d2/servo,brendandahl/servo,paulrouget/servo,brendandahl/servo,luniv/servo,huonw/servo,wpgallih/servo,chotchki/servo,tschneidereit/servo,RenaudParis/servo,KiChjang/servo,kindersung/servo,boghison/servo,zentner-kyle/servo,szeged/servo,anthgur/servo,thiagopnts/servo,juzer10/servo,A-deLuna/servo,KiChjang/servo,boghison/servo,youprofit/servo,luniv/servo,michaelwu/servo,s142857/servo,dati91/servo,runarberg/servo,mattnenterprise/servo,dsandeephegde/servo,szeged/servo,tempbottle/servo,brendandahl/servo,jgraham/servo,GyrosOfWar/servo,GreenRecycleBin/servo,pyfisch/servo,shrenikgala/servo,karlito40/servo,upsuper/servo,jimberlage/servo,thiagopnts/servo,dhananjay92/servo,ryancanhelpyou/servo,SimonSapin/servo,nnethercote/servo,vks/servo,zentner-kyle/servo,walac/servo,evilpie/servo,juzer10/servo,Shraddha512/servo,nrc/servo,karlito40/servo,j3parker/servo,dati91/servo,mbrubeck/servo,zentner-kyle/servo,boghison/servo,AnthonyBroadCrawford/servo,szeged/servo,dvberkel/servo,zhangjunlei26/servo,rnestler/servo,thiagopnts/servo,splav/servo,chotchki/servo,pyecs/servo,fiji-flo/servo,nnethercote/servo,jlegendary/servo,rentongzhang/servo,notriddle/servo,shrenikgala/servo,fiji-flo/servo,zhangjunlei26/servo,evilpie/servo,indykish/servo,pgonda/servo,Adenilson/prototype-viewing-distance,vks/servo,A-deLuna/servo,runarberg/servo,samfoo/servo,peterjoel/servo,mt2d2/servo,ruud-v-a/servo,eddyb/servo,youprofit/servo,saneyuki/servo,Adenilson/prototype-viewing-distance,paulrouget/servo,bjwbell/servo,akosel/servo,srbhklkrn/SERVOENGINE,canaltinova/servo,wartman4404/servo,s142857/servo,srbhklkrn/SERVOENGINE,ryancanhelpyou/servo,dmarcos/servo,evilpie/servo,g-k/servo,dmarcos/servo,samfoo/servo,anthgur/servo,splav/servo,indykish/servo,aidanhs/servo,froydnj/servo,caldwell/servo,mbrubeck/servo,saneyuki/servo,saratang/servo,codemac/servo,KiChjang/servo,brendandahl/servo,mattnenterprise/servo,pyecs/servo,tschneidereit/servo,runarberg/servo,tschneidereit/servo,luniv/servo,paulrouget/servo,RenaudParis/servo,luniv/servo,rnestler/servo,froydnj/servo,caldwell/servo,canaltinova/servo,tafia/servo,splav/servo,avadacatavra/servo,pyecs/servo,larsbergstrom/servo,saneyuki/servo,nick-thompson/servo,karlito40/servo,akosel/servo,zentner-kyle/servo,avadacatavra/servo,nick-thompson/servo,wartman4404/servo,splav/servo,steveklabnik/servo,avadacatavra/servo,peterjoel/servo,karlito40/servo,codemac/servo,GreenRecycleBin/servo,rentongzhang/servo,deokjinkim/servo,pyfisch/servo,bfrohs/servo,tschneidereit/servo,evilpie/servo,mdibaiee/servo,froydnj/servo,shrenikgala/servo,DominoTree/servo,bfrohs/servo,paulrouget/servo,aweinstock314/servo,mattnenterprise/servo,huonw/servo,rixrix/servo,saneyuki/servo,evilpie/servo,mt2d2/servo,tempbottle/servo,pgonda/servo,thiagopnts/servo,jimberlage/servo,dsandeephegde/servo,ConnorGBrewster/servo,paulrouget/servo,KiChjang/servo,walac/servo,zentner-kyle/servo,froydnj/servo,brendandahl/servo,WriterOfAlicrow/servo,echochamber/servo,bjwbell/servo,tschneidereit/servo,dagnir/servo,aidanhs/servo,steveklabnik/servo,mukilan/servo,michaelwu/servo,KiChjang/servo,walac/servo,fiji-flo/servo,tafia/servo,mdibaiee/servo,larsbergstrom/servo,rnestler/servo,juzer10/servo,mt2d2/servo,luniv/servo,emilio/servo,emilio/servo,GreenRecycleBin/servo,pyecs/servo,peterjoel/servo,A-deLuna/servo,bfrohs/servo,anthgur/servo,peterjoel/servo,bjwbell/servo,saneyuki/servo,walac/servo,michaelwu/servo,thiagopnts/servo,pyecs/servo,nrc/servo,chotchki/servo,nnethercote/servo,snf/servo,emilio/servo,cbrewster/servo,cbrewster/servo,anthgur/servo,bjwbell/servo,kindersung/servo,tschneidereit/servo,ConnorGBrewster/servo,szeged/servo,saneyuki/servo,CJ8664/servo,fiji-flo/servo,peterjoel/servo,paulrouget/servo,jdramani/servo,juzer10/servo,dati91/servo,echochamber/servo,srbhklkrn/SERVOENGINE,aweinstock314/servo,jlegendary/servo,hyowon/servo,jdramani/servo,boghison/servo,zentner-kyle/servo,SimonSapin/servo,g-k/servo,nerith/servo,wartman4404/servo,dmarcos/servo,larsbergstrom/servo,DominoTree/servo,nerith/servo,dati91/servo,dati91/servo,runarberg/servo,CJ8664/servo,thiagopnts/servo,samfoo/servo,dagnir/servo,boghison/servo,aweinstock314/servo,CJ8664/servo,tafia/servo,mattnenterprise/servo,deokjinkim/servo,vks/servo,steveklabnik/servo,mbrubeck/servo,RenaudParis/servo,WriterOfAlicrow/servo,sadmansk/servo,snf/servo,indykish/servo,dsandeephegde/servo,nnethercote/servo,nrc/servo,nick-thompson/servo,mattnenterprise/servo,rentongzhang/servo,AnthonyBroadCrawford/servo,pyfisch/servo,evilpie/servo,youprofit/servo,SimonSapin/servo,splav/servo,rixrix/servo,nick-thompson/servo,tafia/servo,splav/servo,bjwbell/servo,aweinstock314/servo,sadmansk/servo,RenaudParis/servo,echochamber/servo,GreenRecycleBin/servo,ConnorGBrewster/servo,zhangjunlei26/servo,pgonda/servo,tempbottle/servo,steveklabnik/servo,froydnj/servo,echochamber/servo,GyrosOfWar/servo,zhangjunlei26/servo,A-deLuna/servo,wpgallih/servo,nerith/servo,vks/servo,dsandeephegde/servo,KiChjang/servo,RenaudParis/servo,ruud-v-a/servo,jlegendary/servo,peterjoel/servo,saratang/servo,mdibaiee/servo,nrc/servo,rixrix/servo,huonw/servo,dagnir/servo,samfoo/servo,saneyuki/servo,canaltinova/servo,pgonda/servo,pgonda/servo,dagnir/servo,eddyb/servo,youprofit/servo,nerith/servo,nick-thompson/servo,mukilan/servo,chotchki/servo,s142857/servo,notriddle/servo,DominoTree/servo,upsuper/servo,kindersung/servo,j3parker/servo,eddyb/servo,meh/servo,zhangjunlei26/servo,vks/servo,AnthonyBroadCrawford/servo,steveklabnik/servo,jgraham/servo,caldwell/servo,larsbergstrom/servo,dagnir/servo,brendandahl/servo,mt2d2/servo,g-k/servo,nick-thompson/servo,GreenRecycleBin/servo,mukilan/servo,indykish/servo,larsbergstrom/servo,jgraham/servo,akosel/servo,jgraham/servo,pyfisch/servo,deokjinkim/servo,dhananjay92/servo,eddyb/servo,WriterOfAlicrow/servo,nnethercote/servo,codemac/servo,s142857/servo,dhananjay92/servo,Adenilson/prototype-viewing-distance,CJ8664/servo,g-k/servo,meh/servo,tafia/servo,cbrewster/servo,samfoo/servo,Shraddha512/servo,indykish/servo,GyrosOfWar/servo,jgraham/servo,CJ8664/servo,aidanhs/servo,aweinstock314/servo,paulrouget/servo,dmarcos/servo,GyrosOfWar/servo,nnethercote/servo,snf/servo,aweinstock314/servo,GyrosOfWar/servo,upsuper/servo,s142857/servo,DominoTree/servo,nnethercote/servo,hyowon/servo,wpgallih/servo,hyowon/servo,aidanhs/servo,tafia/servo,snf/servo,DominoTree/servo,szeged/servo,juzer10/servo,dvberkel/servo,nrc/servo,youprofit/servo,nerith/servo,splav/servo,j3parker/servo,wartman4404/servo,vks/servo,eddyb/servo,kindersung/servo,anthgur/servo,rnestler/servo,AnthonyBroadCrawford/servo,rnestler/servo,A-deLuna/servo,mbrubeck/servo,dati91/servo,avadacatavra/servo,echochamber/servo,cbrewster/servo,jlegendary/servo,hyowon/servo,DominoTree/servo,Adenilson/prototype-viewing-distance,saratang/servo,WriterOfAlicrow/servo,pyfisch/servo,saneyuki/servo,kindersung/servo,larsbergstrom/servo,rentongzhang/servo,mukilan/servo,meh/servo,emilio/servo,rentongzhang/servo,CJ8664/servo,eddyb/servo,akosel/servo,chotchki/servo,avadacatavra/servo,dvberkel/servo,s142857/servo,wartman4404/servo,runarberg/servo,ConnorGBrewster/servo,michaelwu/servo,notriddle/servo,pgonda/servo,splav/servo,indykish/servo,SimonSapin/servo,szeged/servo,WriterOfAlicrow/servo,juzer10/servo,notriddle/servo,ConnorGBrewster/servo,szeged/servo