marijnh/CodeMirror2 — pull request #695 by repenaxa (2012-08-04 08:26:02+00:00)
Title: Migrate getHTML to DOM bindings

This change migrates getHTML from markup generation + parser use via innerHTML to using pure DOM bindings and fragments.

Following are the benefits as I see them:
- 2 x execution speed up tested on Chrome (I would expect it to be not less on modern FF, Opera and IE)
- Limited use of innerHTML (better XSS resistance)
- Absence of getElementById (better code isolation)

Todos:
- Has not been tested on IE
- codemirror.js no longer uses escaping, but the code is needed for modules / tests

Tests:
- measureEndOfLine and moveV fail on Opera (as in the original version though)