View Single Post
Old 04-17-2014, 02:09 PM   #1
JLius
Village idiot
JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.
 
JLius's Avatar
 
Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
element "u" not allowed anywhere

Hi all

So I'm at the final stage of my epub-novel and ran a validation. I get this error message about a hundred times:

element "u" 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")

From what I've read, the <u> shouldn't be a problem as long as it is within a <p>.
This is what it all looks like in my html:

Code:
<p><u>some text</u></p>
So, what exactly is the problem here? I used the calibre editor, and it has this toolbar with the "u", "b", "I" etc, so I just (ignorantly?)used it...

What should I do to fix this, and is there an easy way to fix all 100 instances at once? I've heared of regex, but I don't master it yet (not by a long shot). Any help would be grately appreciated, as always.

Yours

Johan
JLius is offline   Reply With Quote