Open raphael10-collab opened 2 years ago
Try looking at the HTML code of the page at that location after you have selected the word - what does it look like? Does it make sense?
A quick look at that website (link) reveals it has a css rule for <mark>
element:
Bootstrap styles it with padding, hence if you have two mark elements right besides each other (e.g. because you first highlight one part, then another), it will create the result you saw with padding between the elements.
We should fix most occurrences of this issue by normalising consecutive text nodes, to avoid multiple mark elements when we only need one. (I forgot what the state of this is, did we perhaps fix it already but is it not released yet? #80 )
Also it would be nice if the webpage’s CSS does not apply to your annotation tool’s highlights. Perhaps the mark elements can be given a rule all: revert !important;
?
@Treora Interesting. Thank you very much . I do hope it will be fixed soon
For some webpages I'm getting this strange behavior :
for example (above) when trying to highlight the word "negligible", I split it in two parts: negl + igible
This is the code I'm using:
Why does this happen?