mir3z / texthighlighter

-- NO LONGER MAINTAINED -- TextHighlighter allows you to highlight text on web pages.
http://mir3z.github.com/texthighlighter/
MIT License
230 stars 101 forks source link

Text deleted when overlapping highlighted sections have highlighting removed #9

Closed ChaseWagoner closed 9 years ago

ChaseWagoner commented 10 years ago

(Rough) Steps to reproduce (variations on these will consistently reproduce the issue; reproduction may be possible other ways as well):

  1. Highlight a string1 of text with any color1, but leave some unhighlighted on one side

                                 \1/ (original endpoint of color1)
    <color1>a b c d e f g h i j k l </color1>m n o p
  2. With a different color2, highlight a string2 of text overlapping with string1 on one end (not inside string1)

                 \2/ (original start of color2)   \1/
    <color1>a b c d </color1><color2>e f g h i j k l m n o p</color2>
  3. With a third color3, highlight a string3, which has one endpoint in each string1 and string2

                 \2/ (startpoint of color2)                        \1/
    <color1>a b c d </color1><color3>e f g h i j k </color3><color2>l m n o p</color2>
  4. (most consistent method I've found) With transparent color (eraser), click on the section that is still color2

                 \2/ (startpoint of color2)       \1/   \/ click here
    <color1>a b c d </color1><color3>e f g h i j k </color3><color2>l m n o p</color2>

A seemingly-random portion of text is deleted.

mir3z commented 9 years ago

Could you attach some kind of screencast showing this issue?