Hello Forum,
I am trying to format a manuscript and I have run into one problem that I have not been able to solve. A simple strike through piece of text. It fails the epub validator (
http://validator.idpf.org/)
This is the HTML/CSS. Very simple. It displays fine on ereader and browser but fails with error code... ERROR EPUB test.html line 10 position 72 attribute "class" not allowed here; expected attribute "cite" or "datetime"
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<style type="text/css"> html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, pre, table, th, td, tr { margin: 0; padding: 0em; }
p {text-indent: 1.5em; margin-bottom: .2em;}
</style>
</head>
<body>
<p>I’d just pull out my handy <del>abacus , slide rule</del> , calculator to do my figuring. </p>
</body>
Everything I've researched says that is valid HTML. All I want is for the specific text to have a strike through. Tag "s" fails also but is being replaced with the newer "del" tags. The cite and datetime are supposed to be optional attributes but the validator seems to be insisting on attributes. Does anybody have a clue why the epub validator is having a problem with this? Is it a validator bug? Thank you so much for any input.