05-03-2024, 05:15 PM | #1 |
Member
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 |
05-03-2024, 07:46 PM | #2 | |
Sigil Developer
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:
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. |
|
Advert | |
|
05-04-2024, 12:17 PM | #3 |
Member
Posts: 17
Karma: 20
Join Date: Jan 2024
Location: London
Device: none
|
Thank you very much Kevin!
|
|
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 |