News for hackers. Stuff that matters.
Re:Show HN: A DOM text-selection highlight renderer by bowlingx on Friday June 12, 2015 @06:26PM (#9708936)
Thank you for your feedback. What do you mean with cancel? The script will render all selections without doing any assumptions about previous renderings and nests them. Can you give an example?

thank you :)

Re:Show HN: A DOM text-selection highlight renderer by baby on Friday June 12, 2015 @06:55PM (#9709070)
do you have osx? that would be easier for you to open a pdf and see how that highlight thing works.

I'll try to explain it again giving another example:

if you highlight a word, and then you highlight the entire sentence containing that world, with your script it will highlight the word with a different color, with osx it will display like you didn't highlight the word prior to this

your behavior only happens when two highlighted segments cross over, but none of them contain the other.