DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5518>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5518 Convert HTML Tags to be XHTML-compliant when <html:html xhtml="true"> ------- Additional Comments From [EMAIL PROTECTED] 2002-11-20 15:29 ------- The affect it will have on javascript form validation is that you have to use document.forms[#] to get the form element, or you can use the DOM with the following: document.getElementById(formId); document.getElementsByTagName(form).item(0); Here is an example I worked up to demonstrate. I validated it at: http://validator.w3.org/file-upload.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>XHTML Test</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> </head> <body> <form id="test" action=""> <p> <input type="text" name="yo" id="yo" value="My test" /> </p> </form> <p> <script type="text/javascript"> <!-- // this doesn't work in XHTML Strict and // seems to stop all statement from working //document.write("document.test.yo.value: " + document.test.yo.value); document.write("<br/>document.getElementById(\"yo\").value: " + document.getElementById("yo").value); // or you can get the form, then the value */ var form = document.getElementById("test"); // this seems to work regardless of whether input has a name attribute document.write("<br/>document.getElementById(\"test\").yo.value: " + form.yo.value); // you can also get it by form number var form1 = document.forms[0]; document.write("<br/>document.forms[0].yo.value: " + form1.yo.value); // or by document.getElementsByTagName var form2 = document.getElementsByTagName("form").item(0); document.write("<br/>document.getElementsByTagName(\"form\").item(0).yo.value: " + form2.yo.value); //--> </script> </p> </body> </html> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>