jacshore / epubcheck

Automatically exported from code.google.com/p/epubcheck
MIT License
0 stars 0 forks source link

The "name" attribute is wrongly refused on an "a" element #187

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM:

Give a brief description of the problem

The attached document gives the following errors:

Epubcheck Version 3.0b5

Validating against EPUB version 2.0
ERROR: t.epub/part0.xhtml(9,132): attribute "name" not allowed here; expected 
attribute "accesskey", "charset", "class", "coords", "dir", "href", "hreflang", 
"id", "rel", "rev", "shape", "style", "tabindex", "target", "title", "type" or 
"xml:lang"
ERROR: t.epub/style/generated.css: The direction and unicode-bidi properties 
must not be included in an EPUB Style Sheet.

Check finished with warnings or errors

METHOD:

What steps will reproduce the problem?
1.
2.
3.

RESULT:

What happens?

EXPECTED:

What did you expect to happen? It is very important to state what your
expectation is.

There is no restriction on the usage of the name attribute here. An anchor can 
be a link target and link to elsewhere at the same time. There should be no 
complaint.

PLATFORM:

What version of the product are you using? On what operating system?

epubcheck 3.0b5
Mac OS X 10.7.4
Java 1.6.0_31

ADDITIONAL INFO:

Please provide any additional information below.

Original issue reported on code.google.com by werner.d...@gmail.com on 9 Jun 2012 at 12:16

Attachments:

GoogleCodeExporter commented 8 years ago
EPUB 2.0 uses XHTML 1.1, which does not allow @name on the <a> element. So this 
is not an issue with EpubCheck, but with the XHTML 1.1 spec...

Please see http://www.w3.org/TR/xhtml11/changes.html

Original comment by markus.g...@gmail.com on 18 Jul 2012 at 3:06

GoogleCodeExporter commented 8 years ago

Original comment by rdeltour@gmail.com on 20 Oct 2012 at 5:52