Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-03-2024, 05:15 PM   #1
Daniele Giampà
Member
Daniele Giampà began at the beginning.
 
Daniele Giampà's Avatar
 
Posts: 17
Karma: 20
Join Date: Jan 2024
Location: London
Device: none
Error HTM_061: not valid custom attribute

Hello

I created an EPUB3 ebook enriched with AR images and animations titled "Mingled Memories":
https://www.edgedpub.com/sample_work_1.php

I was very surprised to see that there were 243 errors. (attached)
However, it's always the same error code HTM_061.

I am not sure what to do. I am afraid that if I change the code in the XHTML file, I will have to change the JS file too.

Is anybody familiar with this issue?

Many thanks.

Daniele
Attached Thumbnails
Click image for larger version

Name:	HTM_061.png
Views:	227
Size:	663.0 KB
ID:	208021   Click image for larger version

Name:	MM_XHTML_fiile.png
Views:	215
Size:	375.3 KB
ID:	208022  
Daniele Giampà is offline   Reply With Quote
Old 05-03-2024, 07:46 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
Yes rule _061 just restates the specification rules regarding the naming of custom data- attributes in html5:

Quote:
Custom data attributes must be named with the prefix 'data-', followed by at least one character. The attribute name should not contain any uppercase letters, and must be at least one character long after the 'data-' prefix. The attribute name should not contain any semicolons.
And in each case your data- attribute uses mixed upper and lower case names which violates the rules.

The javascript you are using probably relies on those mixed case names.

So use Find and Replace to generate a list of every attribute that begins with "data-" and uniquely sort them. Then search through your javascript code replacing every occurrence with its lowercase equivalent. Then for the xhtml, do the same. It could just be the start and end state ones. So if you are really lucky it might turnout to be a really short list of data- attribute names that need to be fixed.

If this is a third party javascript library, I would look for a more spec compliant version or I would file a bug report against it as it does not meet spec.

Last edited by KevinH; 05-03-2024 at 08:16 PM.
KevinH is offline   Reply With Quote
Advert
Old 05-04-2024, 12:17 PM   #3
Daniele Giampà
Member
Daniele Giampà began at the beginning.
 
Daniele Giampà's Avatar
 
Posts: 17
Karma: 20
Join Date: Jan 2024
Location: London
Device: none
Thank you very much Kevin!
Daniele Giampà is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Attribute Error on Startup Aetrus Calibre 1 08-25-2018 12:26 AM
Calibre's Implicit Max Limit for Valid Values for a Custom Field? DaltonST Library Management 0 05-11-2014 02:07 PM
p attribute error on validation landed Calibre 2 02-13-2011 12:15 PM
date value not valid error message erinm ePub 2 10-15-2010 02:52 PM
Attribute error? jusmee Calibre 2 12-15-2009 09:22 PM


All times are GMT -4. The time now is 03:43 AM.


MobileRead.com is a privately owned, operated and funded community.