auto merge of #5484 : frewsxcv/servo/document-cleanup, r=Ms2ger
auto merge of #5484 : frewsxcv/servo/document-cleanup, r=Ms2ger

* Add whatwg spec links for some Document methods
* Wrap some lines that exceed 100 characters
* Other misc cleanup/refactoring

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