View Single Post
Old 10-13-2022, 02:12 AM   #1
trosoft
Junior Member
trosoft began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2022
Device: None
EPUB Validation errors: Improper placement of link and vlink attributes: EPUB Checker

EPUB version 3
Calibre version 6

How can I correct errors relating to improper placement of link and vlink attributes in EPUB’s CSS?

Calibre automatically generated the CSS for each of the linked sections of the EPUB file, i.e., xxx_split_xxx.htm. (These related to the H1 and H2 elements for the table of contents.)

The Pagina EPUB Checker shows two errors for each of the xxx_split_xxx.htm files relating to the headings and subheadings for the EPUB file’s headings and subheadings.

The results is 70 errors, i.e., two for each of the 35 HTM files.

Each error states that either the “link” or the “vlink” attribute is not allowed at its location in the CSS.

^^^^^^^^^^^^^^^^^^^^^^

"**Error while parsing the attribute "link" not allowed here**", …
"**Error while parsing the attribute "vlink"not allowed here**", …


(But, the links for the table of contents function properly)
__________________________________

Below is copy of a section of the CSS, wherein the offending line contains two errors, re: improper placement of 'link' and 'vlink' attributes.
Once again, this same section is repeated in each of the HTM files relating to the EPUB file’s headings and subheadings See the attachment, which is a partial screenshot of the results from Pagina's EPUB Checker, re: validation errors.

^^^^^^^^^^^^^^^^^^^^^^

At the beginning of 'body' section it reads, lang="EN-US" link="blue" vlink="purple" class="calibre"

[This ERROR concerns the incorrect placement of 'link' and 'vlink' attributes that the EPUB validation tool complains about; these two errors are repeated in each HTM file.]

^^^^^^^^^^^^^^^^^^^^^^

Above, the style in the last line appears in each of the 35 HTM files relating to the headings and subheadings of the table of contents.

There is a separate error for each of the “link” and “vlink” settings.

(The table of contents links work properly.)
Attached Thumbnails
Click image for larger version

Name:	Calibre __CSS Errors.png
Views:	104
Size:	106.3 KB
ID:	197127  
trosoft is offline   Reply With Quote