Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F69C10492 for ; Thu, 6 Mar 2014 20:02:13 +0000 (UTC) Received: (qmail 68759 invoked by uid 500); 6 Mar 2014 20:02:10 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 68668 invoked by uid 500); 6 Mar 2014 20:02:09 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 68660 invoked by uid 99); 6 Mar 2014 20:02:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 20:02:09 +0000 X-ASF-Spam-Status: No, hits=1.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fredand44@hotmail.com designates 157.55.1.143 as permitted sender) Received: from [157.55.1.143] (HELO dub0-omc2-s4.dub0.hotmail.com) (157.55.1.143) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 20:02:03 +0000 Received: from DUB406-EAS264 ([157.55.1.137]) by dub0-omc2-s4.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 6 Mar 2014 12:01:42 -0800 X-TMN: [4Ec/hBufrjLWW2/O5It/o/9rw3eQfPYE] X-Originating-Email: [fredand44@hotmail.com] Message-ID: Date: Thu, 6 Mar 2014 21:01:39 +0100 Subject: Sv: Re: Why do I get this XHTML validation errors? (second attempt) From: Fredrik Andersson To: Struts Users Mailing List MIME-Version: 1.0 Importance: normal Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-OriginalArrivalTime: 06 Mar 2014 20:01:42.0658 (UTC) FILETIME=[E4EB3E20:01CF3976] X-Virus-Checked: Checked by ClamAV on apache.org Hello guys! Yes. the textarea validates fine without the wrap attribute. So I guess I h= ave to skip it. I have tride to put the hidden attributet att: 1 first code line after the form-start-tag 2 before the submit-tag 3 after the submit-tag=2C before form-end-tag. None of the attempt validates. So If you guys got any idea how to solve this mystery plast let me know. Best regards Fredrik --- Originalmeddelande --- Fr=C3=A5n: "Dave Newton" Skickat: 6 mars 2014 17:57 Till: "Struts Users Mailing List" =C3=84mne: Re: Why do I get this XHTML validation errors? (second attempt) I think the issue with the hidden elements is that they're not rendering in a table row=2C and I don't think you're supposed to have elements in-betwee= n (or before/after) a table's rows. On Thu=2C Mar 6=2C 2014 at 11:48 AM=2C Chris Pratt wrote: > Did you try moving the elements to the top of the form=2C or > removing the wrap=3D"hard" from your ? > (*Chris*) > > > On Thu=2C Mar 6=2C 2014 at 5:13 AM=2C Fredrik Andersson >wrote: > > > Hello guys! > > > > I trying to produce a app that renders in XHTML. > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > > > > > How ever I got a form looking like this: > > > > > > > labelposition=3D"top" maxlength=3D"128" size=3D"40" /> > > > labelposition=3D"top" maxlength=3D"128" size=3D"40" /> > > > cols=3D"52" rows=3D"5" labelposition=3D"top" wrap=3D"hard"/> > > > > > value=3D"%{formToken}" /> > > > > > > > > This gets rendered like: > > 25
> action=3D"/productcommentssave.action" method=3D"post"> > > 26 > > 27 > > 28 > > 29 > > 30 > > 31 > > 33 > > 34 > > 35 > > 36 > > 37 > > 38 > > 39 > > 40 > > 42 > > 43 > > 44 > > 45 > > 46 > > 47 > > 48 > > 49 > > 51 > > 52 > > 53 > > 54 > > 55 > > 57 > > 58 > > 59 > > 60 > value=3D"1394108222515" > > id=3D"productcommentssave_PRODUCTCOMMENTSACTION_FORM_TOKEN_NAME"/> > > 61 > id=3D"productcommentssave_productid"/> > > 62
> 32> > maxlength=3D"128" value=3D"" > > id=3D"productcommentssave_productComment_emailAddress"/>
> 41> > maxlength=3D"128" value=3D"" > > id=3D"productcommentssave_productComment_subject"/>
> 50>
> id=3D"productcommentssave_0" value=3D"Submit"/> > > 56
> > > > From http://validator.w3.org/#validate_by_input+with_options I validate > > it and get these 3 anoying errors: > > > > Error Line 50=2C Column 63: there is no attribute "wrap" > > ...Comment.text" cols=3D"52" rows=3D"5" wrap=3D"hard" > > id=3D"productcommentssave_productCo... > > You have used the attribute named above in your document=2C but the > document > > type you are using does not support that attribute for this element. Th= is > > error is often caused by incorrect use of the "Strict" document type > with a > > document that uses frames (e.g. you must use the "Transitional" documen= t > > type to get the "target" attribute)=2C or by using vendor proprietary > > extensions such as "marginheight" (this is usually fixed by using CSS t= o > > achieve the desired effect instead). > > This error may also result if the element itself is not supported in th= e > > document type you are using=2C as an undefined element will have no > supported > > attributes=3B in this case=2C see the element-undefined error message f= or > > further information. > > How to fix: check the spelling and case of the element and attribute=2C > > (Remember XHTML is all lower-case) and/or check that they are both > allowed > > in the chosen document type=2C and/or use CSS instead of this attribute= . If > > you received this error when using the element to incorporate > flash > > media in a Web page=2C see the FAQ item on valid flash. > > > > Error Line 60=2C Column 161: document type does not allow element "inpu= t" > > here > > ...1394108222515" > > id=3D"productcommentssave_PRODUCTCOMMENTSACTION_FORM_TOKEN_NAME"/> > > The element named above was found in a context where it is not allowed. > > This could mean that you have incorrectly nested elements -- such as a > > "style" element in the "body" section instead of inside "head" -- or tw= o > > elements that overlap (which is not allowed). > > One common cause for this error is the use of XHTML syntax in HTML > > documents. Due to HTML's rules of implicitly closed elements=2C this er= ror > > can create cascading effects. For instance=2C using XHTML's "self-closi= ng" > > tags for "meta" and "link" in the "head" section of a HTML document may > > cause the parser to infer the end of the "head" section and the beginni= ng > > of the "body" section (where "link" and "meta" are not allowed=3B hence= the > > reported error). > > > > Error Line 61=2C Column 93: document type does not allow element "input= " > here > > ...t type=3D"hidden" name=3D"productid" value=3D"3" > > id=3D"productcommentssave_productid"/> > > (same as at line 60) > > > > Do you guys see anything that I could do to correct this? I would love = to > > have a app with correct xhtml. > > > > Best regards > > Fredrik > -- e: davelnewton@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton b: Bucky Bits g: davelnewton so: Dave Newton --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org