I get an error when I use the tables

  1. 7 years ago

    I keep getting an error when I try to use a table. It complains about the "width" code but it's code that Pubcoder is generating. I haven't touched the code. This looks like a big to me. Causing massive headaches because I really need the table feature.

    I saved off an image but I sadly don't have a web site or any easy way to post it so here's the error code.

    2 Page 4 attribute "width" not allowed here; expected attribute "accesskey", "aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-busy", "aria-checked", "aria-controls", "aria-describedby", "aria-disabled", "aria-dropeffect", "aria-expanded", "aria-flowto", "aria-grabbed", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-label", "aria-labelledby", "aria-level", "aria-live", "aria-multiline", "aria-multiselectable", "aria-orientation", "aria-owns", "aria-posinset", "aria-pressed", "aria-readonly", "aria-relevant", "aria-required", "aria-selected", "aria-setsize", "aria-sort", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "border", "class", "contenteditable", "contextmenu", "dir", "draggable", "dropzone", "epub:type", "hidden", "id", "lang", "ns:alphabet", "ns:ph", "onabort", "onblur", "oncanplay", "oncanplaythrough", "onchange", "onclick", "oncontextmenu", "ondblclick", "ondrag", "ondragend", "ondragenter", "ondragleave", "ondragover", "ondragstart", "ondrop", "ondurationchange", "onemptied", "onended", "onerror", "onfocus", "oninput", "oninvalid", "onkeydown", "onkeypress", "onkeyup", "onload", "onloadeddata", "onloadedmetadata", "onloadstart", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "onmousewheel", "onpause", "onplay", "onplaying", "onprogress", "onratechange", "onreadystatechange", "onreset", "onscroll", "onseeked", "onseeking", "onselect", "onshow", "onstalled", "onsubmit", "onsuspend", "ontimeupdate", "onvolumechange", "onwaiting", "role", "spellcheck", "tabindex", "title", "xml:base", "xml:lang" or "xml:space" (with xmlns:ns="http://www.w3.org/2001/10/synthesis")
    2 Page 4 attribute "width" not allowed here; expected attribute "accesskey", "aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-busy", "aria-checked", "aria-controls", "aria-describedby", "aria-disabled", "aria-dropeffect", "aria-expanded", "aria-flowto", "aria-grabbed", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-label", "aria-labelledby", "aria-level", "aria-live", "aria-multiline", "aria-multiselectable", "aria-orientation", "aria-owns", "aria-posinset", "aria-pressed", "aria-readonly", "aria-relevant", "aria-required", "aria-selected", "aria-setsize", "aria-sort", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "border", "class", "contenteditable", "contextmenu", "dir", "draggable", "dropzone", "epub:type", "hidden", "id", "lang", "ns:alphabet", "ns:ph", "onabort", "onblur", "oncanplay", "oncanplaythrough", "onchange", "onclick", "oncontextmenu", "ondblclick", "ondrag", "ondragend", "ondragenter", "ondragleave", "ondragover", "ondragstart", "ondrop", "ondurationchange", "onemptied", "onended", "onerror", "onfocus", "oninput", "oninvalid", "onkeydown", "onkeypress", "onkeyup", "onload", "onloadeddata", "onloadedmetadata", "onloadstart", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "onmousewheel", "onpause", "onplay", "onplaying", "onprogress", "onratechange", "onreadystatechange", "onreset", "onscroll", "onseeked", "onseeking", "onselect", "onshow", "onstalled", "onsubmit", "onsuspend", "ontimeupdate", "onvolumechange", "onwaiting", "role", "spellcheck", "tabindex", "title", "xml:base", "xml:lang" or "xml:space" (with xmlns:ns="http://www.w3.org/2001/10/synthesis")

  2. Angelo S

    9 Feb 2017 Administrator

    Hello Cary,
    what you get is a validation error by the EPUB validator. This doesn't mean there's nothing wrong in the code, in fact everything should work as expected, but simply the validator does not accept THAT way of writing the width of a table.
    You have two choices:
    1. If everything is working for you and you don't need to distribute your EPUB through iBooks Store or other stores (some of them may refuse the file because it does not validate), you can simply turn off EPUB validation alltogether:
    -image-
    2. Fix the error by pressing the "code" button in the text editor...
    -image-
    ...and change code like...

    <table style="height: 161px;" width="263">

    ... to...

    <table style="height: 161px; width: 263px;">

    Try to build the project again and it should validate.

    Hope this helps.

    Best Regards,
    Angelo

 

or Sign Up to reply!