Last modified: 2013-03-25 21:47:54 UTC
If the linmod is ABC<alienInline></alienInline>DEF 0123 4 5678 When the cursor is at 5, getOffset returns 3. Programmatically setting selection to 5 will correctly place the cursor, but once again, getting the offset will return 3.
This is if aliens are contentEditable="true".
(In reply to comment #1) > This is if aliens are contentEditable="true". Aren't they supposed to be contentEditable="false"?
Having contentEditable="false" is the original idea but unfortunately it does not work for IE (IE does not respect contentEditable="false" inside contentEditable="true"). Now we are experimenting with having contentEditable="true" and blocking interaction with JavaScript but this approach has its downsides as well - for instance you would get a spellcheck underlines for misspelled words inside alien (majority of browsers we want to support does not respect spellcheck="false" inside spellecheck="true"). We might end up with different approaches for different browsers (of course this is not the preferred solution due to possible high costs of maintenance and testing).
Is this still an issue, or has it been fixed through the various re-writes of this area?
Yeah, fixed through various re-writes. We're going to leave aliens as ce="false" for standards-based browsers and we'll have to programmatically fix IE if the cursor ends up inside.