On 11/5/06, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
I vote (if im allowed) not to allow nested forms at all as they are not HTML
compliant.
I *love* a pissing contest :-) I did some research on nesting forms
(which is quite interesting though, seaside has had similar
discussions), and discovered that in XHTML, nesting forms is valid
[1]. The following document validates perfectly:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Title</title>
</head>
<body>
<form action="http://example.org" method="post">
<div>
<form action="http://example.org" method="post">
</form>
</div>
</form>
</body>
</html>
Now this doesn't imply that nesting HTML form /tags/ is a good idea,
supported by browsers or something we should try to do. Nesting form
/components/ is another matter, and another email message.
Martijn
[1]
http://listserver.dreamhost.com/pipermail/whatwg-whatwg.org/2005-October/004807.html
--
<a href="http://www.thebeststuffintheworld.com/vote_for/wicket">Vote</a>
for <a href="http://www.thebeststuffintheworld.com/stuff/wicket">Wicket</a>
at the <a href="http://www.thebeststuffintheworld.com/">Best Stuff in
the World!</a>