Results 1 to 10 of 15
Thread: Validating a text area with html inside
-
Validating a text area with html inside
18 Dec 2009 @ 17.25 How can I validate a text area that has HTML within it?
I have this for it:
Thanks!Code:<div class="imagehold"> <textarea rows="10" cols="10" id="coded"> <a href="http://www.cloud9comments.com/"><img src="file:///C:/Users/Michael/Desktop/My%20Templates%20and%20Sites/Comment/images/glitterplaceholder.gif" alt="" /></a><br /> <a href="http://www.cloud9comments.com/">Get your free comments by clicking here!</a> </textarea> </div>
-
18 Dec 2009 @ 17.29 I am not going to give you the answer to this one, I want you to learn, so I want you to go to w3c and validate it, then tell me what the validator said and what you think it means...
-
18 Dec 2009 @ 17.33 I have had a look and dont understand the messages at all lol just tried html tidy to see what it said and it removes all the code and leaves the text.
Last edited by Michael; 18 Dec 2009 at @ 17.36.
-
18 Dec 2009 @ 17.36 paste it here and maybe I could give you a clue or two
-
18 Dec 2009 @ 17.38 It wont validate due to the tags from the cms but this is it:
Code removed lolLast edited by Michael; 18 Dec 2009 at @ 17.42.
-
18 Dec 2009 @ 17.39 I meant paste what w3c says about it lol
-
18 Dec 2009 @ 17.42 Thats the whack :DCode:-
Line 11, Column 41: document type does not allow element "a" here …ref="http://www.cloud9comments.com/"><img src="images/glitterplaceholder.gif" ✉
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 two 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, this error can create cascading effects. For instance, using XHTML's "self-closing" 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 beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). -
Line 11, Column 101: document type does not allow element "br" here …rplaceholder.gif" alt="" /></a><br /> ✉
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 two 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, this error can create cascading effects. For instance, using XHTML's "self-closing" 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 beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). -
Line 12, Column 41: document type does not allow element "a" here …ref="http://www.cloud9comments.com/">Get your free comments by clicking here! ✉
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 two 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, this error can create cascading effects. For instance, using XHTML's "self-closing" 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 beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
-
-
18 Dec 2009 @ 17.44 [FONT=monospace]"document type does not allow element here" [/FONT]is the biggest clue mate...[FONT=monospace]
[/FONT]in other words its basically saying [FONT=monospace]'you cant do that'
[/FONT]
-
18 Dec 2009 @ 17.45 Well it is within the body of it, the only thing I can think of is that it needs to be wrapped with form tags possibly?
-
18 Dec 2009 @ 17.50 no, you dont get it.. the idea of that is an example of the problem, its not the problem you are having..
you have incorrectly nested a tag, and they give an example of an incorrectly nested tag.. not necessarily the same tag you have used.
sometimes nesting the tag can be the solution, but not in this case.. it has to be moved as far as I am aware
Similar Threads
-
Validating a form with PHP
By webmachine in forum PHP, ASP & JavaReplies: 9Last Post: 2 Jun 2010, @ 02.02 -
Remove vertical scroll bar on text area
By Michael in forum HTML & CSSReplies: 1Last Post: 27 Jan 2010, @ 17.10 -
Need Help Validating Embedded Code.
By Wrams in forum HTML & CSSReplies: 6Last Post: 22 Oct 2009, @ 10.04 -
Help validating a page with video on it.
By woodencigars in forum Imagery, Graphics & TypographyReplies: 8Last Post: 12 Mar 2009, @ 22.55



LinkBack URL
About LinkBacks












Why my site's ranking...
Speaking of Google's Algorithm I have also heard about Google Zebra...