I'm trying to upgrade a web app to be
XHTML compliant. However, the default page is causing me a problem.
- Code: Select all
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>AppName</title>
</head>
<form name="frmTest" action="index.asp" target="OtherFrame" method="post" ></form>
<frameset onload="document.frmTest.submit();">
<frame name="OtherFrame" title="Main Container frame - Other Frames are contained within this Frame." scrolling="yes" marginwidth="0" marginheight="0" frameborder="0" ></frame>
</frameset>
</html>
That's the source from the web app. When I try to validate it whoever, I get the error
Line 9, Column 71: document type does not allow element "form" here.
and it points to the closing bracket on the open form tag.
I've tried putting body tags in but that just breaks the page. The page works fine as it is. What am I doing wrong?
Also, just to explain about the code. When the webapp loads, the default page (above) loads and in turn calls the Index.
asp page so this really is only the starting page. It's worked fine all this time but the
XHTML validation says it's wrong. What to do?