EPUB noteref links containing nested HTML elements were not always reported as footnotes, as we were checking the epub:type="noteref" attribute on the targetElement, which might not be the <a>.
For example with <a epub:type="noteref" href="notas.xhtml#nt1" id="rf1"><sup>1</sup></a>.</p>,
interactiveElement is the whole <a>, while targetElement might be <sup>1</sup>, depending where we clicked.
EPUB
noteref
links containing nested HTML elements were not always reported as footnotes, as we were checking theepub:type="noteref"
attribute on thetargetElement
, which might not be the<a>
.For example with
<a epub:type="noteref" href="notas.xhtml#nt1" id="rf1"><sup>1</sup></a>.</p>
,interactiveElement
is the whole<a>
, whiletargetElement
might be<sup>1</sup>
, depending where we clicked.