![]() |
#1 |
♫
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
Validation: attribute 'start' is not declared for element 'ol'
I get the above mentioned validation message in Sigil, why is start not allowed here?
The corresponding line is <ol start="14"> <li>something It's valid html and does exactly what it should, output: 14 something If I do it the other way <ol> <li value="14">something the result is also correct, but the validation analog shows "value not allowed for li" Why are those wrong and how do I do it right? |
![]() |
![]() |
![]() |
#2 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
start is an xhtml 1.0 transitional attribute. It is not supported by xhtml 1.1.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Because those are not valid attributes in XHTML, and ePub uses XHTML, not HTML.
I believe there are equivalent properties in CSS, which you can use combined with XHTML, but they are not officially supported in ePub, so the bottom line is, I'm afraid: do not use numbered lists in ePub. |
![]() |
![]() |
![]() |
#4 |
♫
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
Thanks.
I think I'll use it anyway since it works everywhere I have tested so far and just ignore the validation error... |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You can, but a lot of readers will ignore it.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub errors (attribute-type, element, text-not-allowed | thiefwriter | ePub | 5 | 09-17-2011 11:02 AM |
p attribute error on validation | landed | Calibre | 2 | 02-13-2011 11:15 AM |
< ol > "start attribute issue | eclecticguy | ePub | 5 | 06-08-2010 01:41 PM |
Polymer Vision is declared Bankruptcy | Zarkov | News | 1 | 07-16-2009 10:04 AM |