![]() |
#1 |
Member
![]() Posts: 12
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 |
![]() |
![]() |
![]() |
#2 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,927
Karma: 5449552
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 07:16 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 12
Karma: 20
Join Date: Jan 2024
Location: London
Device: none
|
Thank you very much Kevin!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Attribute Error on Startup | Aetrus | Calibre | 1 | 08-24-2018 11:26 PM |
Calibre's Implicit Max Limit for Valid Values for a Custom Field? | DaltonST | Library Management | 0 | 05-11-2014 01:07 PM |
p attribute error on validation | landed | Calibre | 2 | 02-13-2011 11:15 AM |
date value not valid error message | erinm | ePub | 2 | 10-15-2010 01:52 PM |
Attribute error? | jusmee | Calibre | 2 | 12-15-2009 08:22 PM |