Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible false error with EPUB 2 check on ordered lists with value attribute #1559

Open
Changilainen opened this issue Mar 6, 2024 · 2 comments

Comments

@Changilainen
Copy link

I receive the following error on my EPUB 2 ebook:
Col: 73: ERROR(RSC-005): Error while parsing file: attribute "value" not allowed here; expected attribute "dir", "id", "style", "title" or "xml:lang"
I'm using value attribute in ordered list and for some reason it's an error in EPUB 2 but not in EPUB 3. That's why I'm suspecting this is a false error.

Here's the example code:

<ol>
  <li class="DecimalListStart">List example</li>
</ol>
<p class="Paragraph">Just some text.</p>
<ol>
  <li class="DecimalList" value="2">List example continues</li>
</ol>
<p class="Paragraph">Just some text.</p>
<ol>
  <li class="DecimalList" value="3">List example continues</li>
</ol>
<p class="Paragraph">Just some text.</p>

Aren't paragraphs allowed between ordered lists for some reason in EPUB 2 standard or what is causing the error?

@mattgarrish
Copy link
Member

EPUB 2, or more specifically XHTML 1.1, doesn't support the value attribute on list items.

There's a long discussion of this problem here: #1285

@Changilainen
Copy link
Author

Got it, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants