Skip to content

epub:type="noteref" on <a> inside svg #1497

@pkra

Description

@pkra

With something like the following

<p>See also footnote
<svg width="10" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" aria-labeledby="ref">
<a epub:type="noteref" role="doc-noteref" href="#fn" id="ref" aria-label="Footnote Disc">
  <circle cx="50" cy="50" r="50" fill="currentColor"/>
</a>
</svg> 
for more information.</p>
...
<p epub:type="footnote" role="doc-footnote" id="fn">Faux footnote.</p>

epubcheck 5 gives me the following error:

ERROR(RSC-005): svg_a_noteref.epub/OEBPS/Text/Section0001.xhtml(15,54): Error while parsing file: attribute "epub:type" not allowed here

Is this a false positive by any chance?

Here's also a minimal example epub (renamed to .zip)

Metadata

Metadata

Assignees

Labels

priority: highTo be processed and published in the next releasestatus: has PRThe issue is being processed in a pull requesttype: false-positiveThis issue is about valid content being incorrectly rejected

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions