ichord/Caret.js

Problem with HTML entities

Closed this issue · 3 comments

First of all, awesome job. At.js worked amazingly; I really appreciate all your work!

I did find one small bug:

http://ichord.github.io/Caret.js/

Try typing out a sentence then add "&", for example. It should be easy enough to fix by converting & to & before writing it to the DOM.

Thanks again!

Thanks too! 😄

I can't find any "wrong" behaviors after adding &. The position is right.
Or you are talking about inserting the & into text field by At.js ?
Caret.js just giveing the postion of the caret.

Oh, whoops! I typed it out, however GitHub converted the HTML entity to just an ampersand. It should have said "add &, for example".

I included an image. Note the cursor is at the end of "test", but caret.js thinks it's a few pixels to the left.

screen shot 2014-08-30 at 7 26 57 pm

Thanks! :)