Skip to content

Commit

Permalink
πŸ“„ Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asim-shrestha committed Aug 11, 2024
1 parent b0be7b0 commit 7d2e41c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tarsier/tag_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,8 @@ function insertTags(
for (let el of elementsToTag) {
idToXpath[idNum] = getElementXPath(el);

let idSpan = create_tagged_span(idNum, el);

if (isInteractable(el)) {
const idSpan = create_tagged_span(idNum, el);
if (isTextInsertable(el) && el.parentElement) {
el.parentElement.insertBefore(idSpan, el);
} else {
Expand Down

0 comments on commit 7d2e41c

Please sign in to comment.