Open mbret opened 3 years ago
Thank you. I apologize for the delay but will investigate this soon.
I just tried running .resolveLast
on the HTML you provided using the CFI you provided and it works fine for me. Can you give me the exact code you're using?
I will try again with your latest update and come back to you
For this CFI
epubcfi(/2/4/2[_preface]/10/1:175)
which points at this fragment of the epub
You can check the specific html for the page here
https://pastebin.com/NmW8Uz4T
I am getting an undefined node but a correct offset
It looks like the function
getChildNodeByCFIIndex
seems to fail to retrieve the TEXT_NODE for this partat this state
index
andcfiCount
are both 1 and therefore the function return undefined. ThelastChild
is the TEXT_NODE