diff --git a/src/calibre/ebooks/oeb/display/cfi.coffee b/src/calibre/ebooks/oeb/display/cfi.coffee index 7f8acb23f1..4ab9642df6 100644 --- a/src/calibre/ebooks/oeb/display/cfi.coffee +++ b/src/calibre/ebooks/oeb/display/cfi.coffee @@ -389,7 +389,7 @@ class CanonicalFragmentIdentifier # Drill down into iframes, etc. while true target = cdoc.elementFromPoint x, y - if not target or target.localName == 'html' + if not target or target.localName in ['html', 'body'] # log("No element at (#{ x }, #{ y })") return null