Why single textarea mess all following xhtml?

Posted by Victor Lin on Stack Overflow See other posts from Stack Overflow or by Victor Lin
Published on 2009-09-15T15:11:09Z Indexed on 2011/01/11 5:53 UTC
Read the original article Hit count: 302

Filed under:
|
|

I encounter a problem in my web program. I got a textarea in my form, sometimes there is nothing in textarea, so genshi template engine just output it as

<textarea xxxx />

and here comes the problem, all following tags are in the textarea. Why all browser can't handle single textarea correctly?

If I write it as

<textarea xxxx></textarea>

and everything works fine. Why a single textarea messes following tags in xhtml?

© Stack Overflow or respective owner

Related posts about XHTML

Related posts about textarea