Skip to content

Commit e1d94f9

Browse files
Fix a couple of errors
1 parent 74e1515 commit e1d94f9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

highlight-helper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ function Highlighter(options = hhDefaultOptions) {
104104
top: 0;
105105
left: 0;
106106
width: 100%;
107-
height: 100%;
108107
overflow: visible;
109108
z-index: -1;
110109
}
@@ -410,7 +409,7 @@ function Highlighter(options = hhDefaultOptions) {
410409
// Set variables that depend on the range
411410
const temporaryHtmlElement = document.createElement('div');
412411
temporaryHtmlElement.appendChild(highlightRange.cloneContents());
413-
for (const element of temporaryHtmlElement.querySelectorAll(`a, [data-highlight-id]:not([data-highlight-id=${highlightId}])`)) element.outerHTML = element.innerHTML;
412+
for (const element of temporaryHtmlElement.querySelectorAll(`a, [data-highlight-id]:not([data-highlight-id="${highlightId}"])`)) element.outerHTML = element.innerHTML;
414413
rangeText = highlightRange.toString();
415414
rangeHtml = temporaryHtmlElement.innerHTML;
416415
let startParagraphIndex = annotatableParagraphIds.indexOf(startParagraphId);

0 commit comments

Comments
 (0)