LP_WordHighlighter words erases text

Bug #565319 reported by Rune Philosof
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad Greasemonkey Scripts
New
Undecided
Unassigned

Bug Description

see https://bugs.launchpad.net/bzr/+bug/367545/comments/10
with word highlighting on it says:
The requested disassemble.

9.10-karmic

karmic 0

However, see the source for the page or turn the script off and you will see much more text.

This happens because word highlighter works by replacing the innerHTML of the parent to the found text, thus removing all siblings to the selected text node.
                    text.snapshotItem(i).parentNode.innerHTML = text.snapshotItem(i).textContent.replace(regex,'<span name=' + rid + ' id=' + rid + ' style=\'color:#000;background-color:'+ color_map[key] +';\'>$1</span>');

Revision history for this message
Philip Muškovac (yofel) wrote :

Already reported as bug 504956. I'll add your information there.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.