![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jun 2016
Device: iPad
|
ePub validation fails "role" tag
Using the IDPF Validator, my ePub failed with one error in content1.xhtml
Error while parsing file 'attribute "role" not allowed here; expected attribute "class", "dir", "id", "lang", "style", "title" or "xml:lang" Here is the code: <span role="heading" class="calibre1"> What should I do? Thanks in advance. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Remove the role. It is not supported in XHTML, it is new for HTML5. It may be fine for an ePUB3, but not for an ePUB2.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,441
Karma: 59592133
Join Date: Jan 2007
Location: Peru
Device: KINDLE: Oasis 3, Scribe (1st), Matcha; KOBO: Libra 2, Libra Colour
|
Please do not double-post.
Don (Moderator) Last edited by Dr. Drib; 07-07-2016 at 04:12 PM. |
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Sorry for the confusion.
![]() I probably should have suggested you report your other post and ask for it to be moved to this forum (recommended as per the forum guidelines article #3) rather than opening a second thread. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub validation fails "role" tag | navyo | Conversion | 4 | 07-07-2016 04:13 PM |
Bug in epub metadata writer? Invalid attribute role="aut" | Man Eating Duck | Calibre | 3 | 09-26-2012 09:55 AM |
ePub validation error: 'element "span" not allowed here' | nannygoats | ePub | 5 | 11-30-2011 08:47 AM |
meta tag "ePub creator" | ffarr | Sigil | 7 | 11-26-2010 12:20 AM |
Suggestion: Don't set "color" tag in .epub css | McAlsop | Calibre | 16 | 06-17-2010 09:13 AM |