Work around webkit bugs related to super-long lines
Work around webkit bugs related to super-long lines

Pasting in a 120k-character line caused two problems

 - The textarea, when wrap=off is set, simply cuts off anything after char
   57444. Removing the wrap attribute fixed this.
 - Text nodes longer then (again) 57444 seem not to be rendered beyond that
   character unless wrapped. A hack was added to slice up spans that were
   too long.

Also removes the 'stop highlighting at character 5000' hack, since that
appears to be the least of our worries (highlighting is much faster than
rendering/layouting).

Closes #1080

TechnicalPursuit/CodeMirror,sourcelair/CodeMirror,kolya-ay/CodeMirror,AlanWasTaken/codemirror,jessegrosjean/CodeMirror,kk9599/CodeMirror,happibum/CodeMirror-main,systay/CodeMirror,MarcelGerber/CodeMirror,apatawari/CodeMirror,sekcheong/CodeMirror,fmoliveira/CodeMirror,pabloferz/CodeMirror,karthikeyansam/CodeMirror,alur/CodeMirror,qweasd1/CodeMirror,MarcelGerber/CodeMirror,abdelouahabb/CodeMirror,xeronith/CodeMirror,joshterrell805-historic/CodeMirror,sanyaade-iot/CodeMirror,nightwing/CodeMirror,KamranMackey/CodeMirror,supriyantomaftuh/CodeMirror,mtaran-google/CodeMirror,TDaglis/CodeMirror,Aliccer/CodeMirror,fmoliveira/CodeMirror,bfrohs/CodeMirror,antimatter15/CodeMirror,bocharsky-bw/CodeMirror,mightyguava/CodeMirror,hccampos/CodeMirror,Aliccer/CodeMirror,rrandom/CodeMirror,d0liver/CodeMirror,kangkot/CodeMirror,morrisonwudi/CodeMirror,rustemferreira/CodeMirror,karthikeyansam/CodeMirror,cben/CodeMirror,happibum/CodeMirror-main,CartoDB/CodeMirror,karevn/CodeMirror,buchslava/CodeMirror,axter/CodeMirror,karevn/CodeMirror,elisee/CodeMirror,INTELOGIE/CodeMirror,belph/CodeMirror,thomasjm/CodeMirror,tpphu/CodeMirror,wbinnssmith/CodeMirror,hccampos/CodeMirror,ficristo/CodeMirror,gkoberger/CodeMirror,cintiamh/CodeMirror,abdelouahabb/CodeMirror,GerHobbelt/CodeMirror2,qiankun007/CodeMirror,davidpham87/CodeMirror,vincentwoo/CodeMirror,cben/CodeMirror,bluesh55/CodeMirror,camellhf/CodeMirror,NumbersInternational/CodeMirror,qiankun007/CodeMirror,NumbersInternational/CodeMirror,dudb/CodeMirror,qiankun007/CodeMirror,melpon/CodeMirror,AlanWasTaken/codemirror,mightyguava/CodeMirror,shiren/CodeMirror,jayaprabhakar/CodeMirror,camellhf/CodeMirror,manderson23/CodeMirror,qweasd1/CodeMirror,loopspace/CodeMirror,kk9599/CodeMirror,loopspace/CodeMirror,sanyaade-iot/CodeMirror,thomasjm/CodeMirror,ficristo/CodeMirror,cintiamh/CodeMirror,jpolitz/CodeMirror,nawroth/CodeMirror,Icenium/CodeMirror,manderson23/CodeMirror,kk9599/CodeMirror,KamranMackey/CodeMirror,KamranMackey/CodeMirror,grzegorzmazur/CodeMirror,bfrohs/CodeMirror,alur/CodeMirror,michaelerobertsjr/CodeMirror,schanzer/CodeMirror,isdampe/CodeMirror,melpon/CodeMirror,pjkui/CodeMirror,d0liver/CodeMirror,EasonYi/CodeMirror,bocharsky-bw/CodeMirror,hccampos/CodeMirror,abdelouahabb/CodeMirror,trumanliu/CodeMirror,ksanaforge/CodeMirror,nawroth/CodeMirror,vincentwoo/CodeMirror,explorigin/CodeMirror,codio/CodeMirror,dperetti/CodeMirror,morrisonwudi/CodeMirror,ZombieHippie/CodeMirror,skylarkcob/CodeMirror,ssxxue/CodeMirror,sekcheong/CodeMirror,michaelerobertsjr/CodeMirror,rrandom/CodeMirror,djadmin/CodeMirror,davidpham87/CodeMirror,jayaprabhakar/CodeMirror,increpare/CodeMirror,rustemferreira/CodeMirror,pabloferz/CodeMirror,dperetti/CodeMirror,namin/CodeMirror,ejgallego/CodeMirror,nawroth/CodeMirror,EasonYi/CodeMirror,webida/CodeMirror,matthewbauer/CodeMirror,vanloswang/CodeMirror,ZombieHippie/CodeMirror,jayaprabhakar/CodeMirror,jansel/CodeMirror,Navaneethsen/CodeMirror,ksanaforge/CodeMirror,amsul/CodeMirror,hackmdio/CodeMirror,hackmdio/CodeMirror,r7kamura/CodeMirror,jochenberger/CodeMirror,Dominator008/CodeMirror,jhnesk/CodeMirror,GerHobbelt/CodeMirror2,INTELOGIE/CodeMirror,michaelerobertsjr/CodeMirror,TechnicalPursuit/CodeMirror,Carreau/CodeMirror,grzegorzmazur/CodeMirror,antimatter15/CodeMirror,isdampe/CodeMirror,sekcheong/CodeMirror,sourcelair/CodeMirror,pinbe/CodeMirror,vanloswang/CodeMirror,elisee/CodeMirror,dbarnett/CodeMirror,fpco/codemirror,Dominator008/CodeMirror,cintiamh/CodeMirror,Allenice/CodeMirror,rasata/CodeMirror,Navaneethsen/CodeMirror,ashmind/CodeMirror,supriyantomaftuh/CodeMirror,rasata/CodeMirror,belph/CodeMirror,Dominator008/CodeMirror,mtaran-google/CodeMirror,pinbe/CodeMirror,pinbe/CodeMirror,kerabromsmu/CodeMirror,adobe/CodeMirror2,buchslava/CodeMirror,amireh/codemirror,ficristo/CodeMirror,shiren/CodeMirror,manderson23/CodeMirror,webida/CodeMirror,wingify/CodeMirror,InternetGuru/CodeMirror,Jisuanke/CodeMirror,Carreau/CodeMirror,SidPresse/CodeMirror,nightwing/CodeMirror,InternetGuru/CodeMirror,jessegrosjean/CodeMirror,Jisuanke/CodeMirror,crazy4chrissi/CodeMirror,NeZaMy/CodeMirror2,Aliccer/CodeMirror,sgoo/CodeMirror,belph/CodeMirror,symbla/CodeMirror,jkaplon/CodeMirror,axter/CodeMirror,TDaglis/CodeMirror,kerabromsmu/CodeMirror,tpphu/CodeMirror,nightwing/CodeMirror,webida/CodeMirror,angelozerr/CodeMirror,Allenice/CodeMirror,jochenberger/CodeMirror,agendor/CodeMirror,jessegrosjean/CodeMirror,TDaglis/CodeMirror,hackmdio/CodeMirror,Allenice/CodeMirror,kolya-ay/CodeMirror,codio/CodeMirror,jpolitz/CodeMirror,Navaneethsen/CodeMirror,djadmin/CodeMirror,dudb/CodeMirror,sgoo/CodeMirror,alur/CodeMirror,vanloswang/CodeMirror,qweasd1/CodeMirror,amshali/CodeMirror,ksanaforge/CodeMirror,systay/CodeMirror,crazy4chrissi/CodeMirror,SidPresse/CodeMirror,ejgallego/CodeMirror,dudb/CodeMirror,ThebingServices/CodeMirror,matthewbauer/CodeMirror,CartoDB/CodeMirror,ThebingServices/CodeMirror,Icenium/CodeMirror,happibum/CodeMirror-main,d0liver/CodeMirror,apatawari/CodeMirror,adobe/CodeMirror2,AlanWasTaken/codemirror,angelozerr/CodeMirror,bocharsky-bw/CodeMirror,tpphu/CodeMirror,mizchi/CodeMirror,schanzer/CodeMirror,kerabromsmu/CodeMirror,InternetGuru/CodeMirror,wingify/CodeMirror,buchslava/CodeMirror,ashmind/CodeMirror,SidPresse/CodeMirror,bgrins/CodeMirror,DustinH/CodeMirror,jkaplon/CodeMirror,axter/CodeMirror,codio/CodeMirror,dbarnett/CodeMirror,trumanliu/CodeMirror,mizchi/CodeMirror,vincentwoo/CodeMirror,loopspace/CodeMirror,mightyguava/CodeMirror,notepadqq/CodeMirror,elisee/CodeMirror,ejgallego/CodeMirror,NumbersInternational/CodeMirror,skylarkcob/CodeMirror,r7kamura/CodeMirror,shiren/CodeMirror,gkoberger/CodeMirror,namin/CodeMirror,NeZaMy/CodeMirror2,mihailik/CodeMirror,morrisonwudi/CodeMirror,namin/CodeMirror,jpolitz/CodeMirror,anthonygego/CodeMirror,bluesh55/CodeMirror,webida/CodeMirror,agendor/CodeMirror,explorigin/CodeMirror,DustinH/CodeMirror,Ermlab/CodeMirror,kuangyeheng/CodeMirror,adobe/CodeMirror2,flyskyko/CodeMirror,notepadqq/CodeMirror,mihailik/CodeMirror,pabloferz/CodeMirror,notepadqq/CodeMirror,wingify/CodeMirror,xeronith/CodeMirror,isdampe/CodeMirror,jhnesk/CodeMirror,NeZaMy/CodeMirror2,Jisuanke/CodeMirror,fivetran/CodeMirror,DustinH/CodeMirror,kangkot/CodeMirror,ssxxue/CodeMirror,amsul/CodeMirror,crazy4chrissi/CodeMirror,Icenium/CodeMirror,fpco/codemirror,bluesh55/CodeMirror,mtaran-google/CodeMirror,djadmin/CodeMirror,xeronith/CodeMirror,INTELOGIE/CodeMirror,pjkui/CodeMirror,ThebingServices/CodeMirror,schanzer/CodeMirror,jkaplon/CodeMirror,anthonygego/CodeMirror,thomasjm/CodeMirror,kevinushey/CodeMirror,jansel/CodeMirror,ZombieHippie/CodeMirror,rasata/CodeMirror,kuangyeheng/CodeMirror,philuchansky/CodeMirror,fivetran/CodeMirror,Ermlab/CodeMirror,bgrins/CodeMirror,increpare/CodeMirror,skylarkcob/CodeMirror,kuangyeheng/CodeMirror,bfrohs/CodeMirror,kangkot/CodeMirror,grzegorzmazur/CodeMirror,amshali/CodeMirror,r7kamura/CodeMirror,pjkui/CodeMirror,symbla/CodeMirror,trumanliu/CodeMirror,camellhf/CodeMirror,rrandom/CodeMirror,supriyantomaftuh/CodeMirror,philuchansky/CodeMirror,melpon/CodeMirror,sanyaade-iot/CodeMirror,philuchansky/CodeMirror,symbla/CodeMirror,flyskyko/CodeMirror,karevn/CodeMirror,mizchi/CodeMirror,systay/CodeMirror,kevinushey/CodeMirror,sourcelair/CodeMirror,TechnicalPursuit/CodeMirror,flyskyko/CodeMirror,bgrins/CodeMirror,wbinnssmith/CodeMirror,rustemferreira/CodeMirror,antimatter15/CodeMirror,agendor/CodeMirror,mihailik/CodeMirror,ashmind/CodeMirror,joshterrell805-historic/CodeMirror,anthonygego/CodeMirror,dbarnett/CodeMirror,davidpham87/CodeMirror,gkoberger/CodeMirror,apatawari/CodeMirror,MarcelGerber/CodeMirror,dperetti/CodeMirror,ssxxue/CodeMirror,EasonYi/CodeMirror,fmoliveira/CodeMirror,increpare/CodeMirror,amshali/CodeMirror,karthikeyansam/CodeMirror,matthewbauer/CodeMirror