Validator not checking for default scripting language information when an intrinsic event script is present.

Hi there,
I think I found a requirement that is not checked by the validator.  In http://www.w3.org/TR/html401/interact/scripts.html#default-script it says in 18.2.2:

"Documents that do not specify default scripting language information and that contain elements that specify an intrinsic event script are incorrect. "

I have tested the following HTML document which does specify an intrinsic event script but does not specify the default scripting language:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<TITLE>GRR: Report Basic Info</TITLE>
<LINK REL=StyleSheet TYPE="text/css" HREF="GRR.css">
</HEAD>
<BODY>

   <P class="SubFormTitle">Basic Info</P>
   <FORM class="Left" action="/grr/session" method="POST">
 <DIV>
      <INPUT type="hidden" name="from_page" value="rpt_def_basic_info">
      <INPUT type="hidden" name="to_page" value="unknown">
      <INPUT type="hidden" name="sessionID" value="GRRU">
   </DIV>
      <P><INPUT type="text" name="rptName" value="VaRCE_All_P" onclick="document.write('OK.')"></P>
   </FORM>
</BODY>
</HTML>

It was deemed valid both for transitional and strict versions.

Cheers,
Marek

Received on Monday, 1 October 2001 04:12:59 UTC