Wuu Posted June 14, 2009 Report Share Posted June 14, 2009 Line 24, Column 54: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag <input id="chatbox" name="chatbox" type="text" /> ✉ The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). <form id="chat_submit" action="self" onsubmit="send_chat(); return false;"> <input id="chatbox" name="chatbox" type="text" /> </form> Kā to izlabot? Quote Link to comment Share on other sites More sharing options...
bubu Posted June 14, 2009 Report Share Posted June 14, 2009 Tur taču uzrakstīts kā izlabot - liec to inputu iekš bloka elementa, piemēram <p>. Acīmredzot pa tiešo zem formas atrasties nav valīdi. Vajag savu bloka elementu. Quote Link to comment Share on other sites More sharing options...
Wuu Posted June 14, 2009 Author Report Share Posted June 14, 2009 Jā palīdzēja ,bet pirmo reiz šādu joku redzu ,cik formas esmu taisījis nekad tāds nav redzēts. Quote Link to comment Share on other sites More sharing options...
Web Developer Posted June 15, 2009 Report Share Posted June 15, 2009 (edited) Tas ir tikai XHTML Strict. XHTML Transitional pieļauj arī inline elementus pa taisno "form" elementa cdata iekšā. Varētu būt saistīts ar sekojošām definīcijām (neesmu baigais DTD specs, tāpēc 100% visu tur nezinu): No XHTML 1.0 Strict DTD: <!ENTITY % form.content "(%block; | %misc;)*"> No XHTML 1.0 Transtional DTD: <!ENTITY % form.content "(#PCDATA | %block; | %inline; | %misc;)*"> Izskatās, ka Transitional versija pieļauj inline, kamēr Strict nē. Edited June 15, 2009 by Web Developer Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.