W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 1999

minor bug report

From: Jeff Greif <jmg@trivida.com>
Date: Fri, 23 Apr 1999 17:06:36 -0700
Message-ID: <107401be8de6$51d4fd20$a24630d1@trivida.com>
To: <html-tidy@w3.org>
The onsubmit attribute of FORM does not appear to be recognized, even when
the document is an HTML 4.0 doc on Win32 (NT 4.0 SP3).  The warning message
is:

Tidy (vers 14th April 1999) Parsing "tryform.html"
line 17 column 1 - Warning: unknown attribute "onsubmit"

Please pardon me if I have sent the report to the wrong place.
Jeff

Here is a sample file illustrating the problem:
---------------------------------  snip here ------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD>
<META http-equiv="Content-Script-Type" content="text/javascript"/>
<TITLE>Blah blah</TITLE>

<SCRIPT type="text/javascript">
<!--
  function validateAndSubmit(myform) {
    return true;
  }
// -->
</SCRIPT>
</HEAD>
<BODY>
<H1>Gibberish</H1><BR>
<FORM name="pwdform" onsubmit="validateAndSubmit(this)"
  action="http://localhost/foo.html"
  method="post"
>
<HR>
<P>
Zork Name: <INPUT type="text" name="Zork"><BR>
<INPUT type="button" name="Submit" value="Submit"
onclick="validateAndSubmit(this.form)">
<INPUT type="reset" name="reset">
</P>
</FORM>
</BODY>
</HTML>
--------------------------------------snip ---------------------------------
-------
Received on Friday, 23 April 1999 20:07:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:42 GMT