Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-05-2012, 12:06 PM   #1
steventaylor
Junior Member
steventaylor began at the beginning.
 
Posts: 4
Karma: 12
Join Date: Jul 2012
Device: none
XHTML <form> and <input> usage

Greetings,

For a textbook, there is a search page towards the end containing a text field which is getting flagged:

Code:
 
<form action="" method="get">
<div>
<input name="q" type="text" value="" /> <input type="submit" value="search" /> <span class="sgc-2" id="search-progress"></span>
</div>
</form>
There are 4 errors within ePubCheck 1.2 from the above code:

Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

Epubcheck Version 1.2

ERROR: C:\file.epub/OEBPS/Text/search.html(308): element "form" not allowed anywhere; e
xpected the element end-tag, text or element "a", "abbr", "acronym", "address",
"applet", "b", "bdo", "big", "blockquote", "br", "cite", "code", "del", "dfn", "
div", "dl", "em", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "iframe", "img"
, "ins", "kbd", "map", "noscript", "ns:svg", "object", "ol", "p", "pre", "q", "s
amp", "script", "small", "span", "strong", "sub", "sup", "table", "tt", "ul" or
"var" (with xmlns:ns="http://www.w3.org/2000/svg")

ERROR: C:\file.epub/OEBPS/Text/search.html(310): element "input" not allowed anywhere;
expected text or element "a", "abbr", "acronym", "address", "applet", "b", "bdo"
, "big", "blockquote", "br", "cite", "code", "del", "dfn", "div", "dl", "em", "h
1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "iframe", "img", "ins", "kbd", "map
", "noscript", "ns:svg", "object", "ol", "p", "pre", "q", "samp", "script", "sma
ll", "span", "strong", "sub", "sup", "table", "tt", "ul" or "var" (with xmlns:ns
="http://www.w3.org/2000/svg")

ERROR: C:\file.epub/OEBPS/Text/search.html(310): element "input" not allowed anywhere;
expected text or element "a", "abbr", "acronym", "address", "applet", "b", "bdo"
, "big", "blockquote", "br", "cite", "code", "del", "dfn", "div", "dl", "em", "h
1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "iframe", "img", "ins", "kbd", "map
", "noscript", "ns:svg", "object", "ol", "p", "pre", "q", "samp", "script", "sma
ll", "span", "strong", "sub", "sup", "table", "tt", "ul" or "var" (with xmlns:ns
="http://www.w3.org/2000/svg")

ERROR: C:\file.epub/OEBPS/Text/search.html(311): element "input" not allowed anywhere;
expected text or element "a", "abbr", "acronym", "address", "applet", "b", "bdo"
, "big", "blockquote", "br", "cite", "code", "del", "dfn", "div", "dl", "em", "h
1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "iframe", "img", "ins", "kbd", "map
", "noscript", "ns:svg", "object", "ol", "p", "pre", "q", "samp", "script", "sma
ll", "span", "strong", "sub", "sup", "table", "tt", "ul" or "var" (with xmlns:ns
="http://www.w3.org/2000/svg")

Check finished with warnings or errors!
According to w3schools, the <form> element isn't allowed in XHTML; however even after taking out the <form> element and leaving <input> the last two errors above still appear, even with <div> or <p> tags surrounding it. Any help is appreciated!!
steventaylor is offline   Reply With Quote
Old 07-05-2012, 12:42 PM   #2
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by steventaylor View Post
For a textbook, there is a search page towards the end containing a text field which is getting flagged:
To bring is straight to the point: <form> and <input> in epub 2.1: no way ! sorry.

The forms-module is a among the required modules, see here
mmat1 is offline   Reply With Quote
Advert
Old 07-09-2012, 11:54 AM   #3
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by mmat1 View Post
To bring is straight to the point: <form> and <input> in epub 2.1: no way ! sorry.

The forms-module is a among the required modules, see here
I think you meant the forms-module is not among the required modules. Not only is it not required it is not allowed.
DaleDe is offline   Reply With Quote
Old 07-09-2012, 12:44 PM   #4
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by DaleDe View Post
I think you meant the forms-module is not among the required modules. Not only is it not required it is not allowed.
Sorry for the typo. Of course the "a" should be "not".

But not allowed ? Did I condone something ??
mmat1 is offline   Reply With Quote
Old 07-09-2012, 08:51 PM   #5
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by mmat1 View Post
Sorry for the typo. Of course the "a" should be "not".

But not allowed ? Did I condone something ??
Not condone, I wasn't referring to condoning something, specs don't usually use that term. There are some things that are optional in the spec, that is not required. The reading app can ignore them if desired. Things that are required cannot be ignored by the reading app.
DaleDe is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Input Plugin] DOCX Input SauliusP. Plugins 42 06-05-2013 04:01 AM
TOC xhtml giosa Sigil 3 01-17-2012 09:12 PM
xhtml from epub georger ePub 8 10-13-2009 07:14 AM
FORM INPUT: Cute idea, but nevertheless useful nrapallo IMP 2 04-05-2008 09:11 AM
xhtml document deadite66 iRex 1 08-02-2006 03:15 PM


All times are GMT -4. The time now is 10:00 AM.


MobileRead.com is a privately owned, operated and funded community.