mxp1988 / epubcheck

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

<center> tag generates error #235

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM:

false negative

METHOD:

What steps will reproduce the problem?
1. run epubcheck against a file with a <center> tag
2.
3.

RESULT:

ERROR: Step06.epub/OEBPS/C002.xhtml(38,15): element "center" not allowed 
anywhere; expected the element end-tag, text or element "a", "abbr", "acronym", 
"applet", "b", "bdo", "big", "br", "cite", "code", "del", "dfn", "em", "i", 
"iframe", "img", "ins", "kbd", "map", "noscript", "ns:svg", "object", "q", 
"samp", "script", "small", "span", "strong", "sub", "sup", "tt" or "var" (with 
xmlns:ns="http://www.w3.org/2000/svg")

EXPECTED:

Nothing

PLATFORM:

3.0 on XP SP3

ADDITIONAL INFO:

The epub that fails epubcheck works in the Firefox plugin and on the Kobo 
reader and centers text as it should.

Original issue reported on code.google.com by timna...@gmail.com on 26 Dec 2012 at 10:53

GoogleCodeExporter commented 8 years ago
The center tag is neither allowed in XHTML 1.1 (EPUB2) nor in HTML5 (EPUB3). 
Use CSS to achieve the same effect instead.

Original comment by markus.g...@gmail.com on 27 Dec 2012 at 10:30