You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/04/01 02:16:35 UTC
DO NOT REPLY [Bug 28113] New: -
html:form generates invalid non-validating XHTML
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28113>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28113
html:form generates invalid non-validating XHTML
Summary: html:form generates invalid non-validating XHTML
Product: Struts
Version: Nightly Build
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Custom Tags
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: greening@bigtribe.com
The javascript included in html:form is incorrect XHTML (it does not escape the
& character as &).
See:
----------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-GB" xml:lang="en-GB">
<head>
<title>Ageo: Enter address</title>
<link rel="up" href="/context/" />
<link rel="top" href="/context/.." />
<link href="ageo.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="title">Ageo: Enter Address</div>
<div class="box">
<form name="context" method="post" action="/context/html/nearaddress.do">
<TABLE border="0" width="100%">
<TR>
<TH align="right">Street:</TH>
<TD align="left">
<input type="text" name="thoroughfare" size="16" value="330 Townsend St" />
<br />
</TD>
</TR>
<TR>
<TH align="right">City:</TH>
<TD align="left">
<input type="text" name="locality" size="16" value="San Francisco" />
<br />
</TD>
</TR>
<TR>
<TH align="right">State:</TH>
<TD align="left">
<input type="text" name="administrativeArea" size="16" value="CA" />
<br />
</TD>
</TR>
<TR>
<TH align="right">Postal code:</TH>
<TD align="left"><input type="text" name="postalCode" size="16" value="94107"
/></TD>
</TR>
<TR>
<TD align="right"><input type="submit" value="Submit" /></TD>
<TD align="left"><input type="reset" value="Reset" /></TD>
</TR>
</TABLE>
</form>
<script type="text/javascript">
var focusControl = document.forms["context"].elements["thoroughfare"];
if (focusControl.type != "hidden" && !focusControl.disabled) {
focusControl.focus();
}
</script>
</div>
</body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org