compute html text length
appropriate titles
fixing selection inversion problem
moving caret with arrow keys (limit problems, need to detect when exiting the document body)