InDesign 20.3 creates target attributes to every link in EPUB
The latest InDesign version (20.3) creates target="_blank" attributes to every link when exported as EPUB. Doesn't matter if the link contains URL or it's a link from a text anchor. The latest EPUB Check version (5.2.1) gives an error with every link that doesn't have href attribute which means every text anchor is invalid.
For example:
<h1 id="_idParaDest-1" class="Header-1"><a id="_idTextAnchor000" target="_blank"></a>Foreword</h1>
In EPUB Check this is an error:
ERROR(RSC-005): Error while parsing file: element "a" missing required attribute "href"

-
MW commented
Still present in 20.3.1 unfortunately.
As of now, only working with 20.2 or manually / automatically removing target="_blank" in the EPUB will let it pass epubcheck. -
Mike commented
Is there a workaround for this error yet?
-
Beto Cumming commented
I had successfully created an EPUB, and I had to make a revision to it and upload it to the distributor again. I could not get the new EPUB to validate. I saw this post, and I reverted to an earlier version, and I exported the file again. This time I was successful.
-
Kjetil Waren Johnsen commented
Every other update messes up the epub export ... please remember that some of us actually use this function!