New features in latest HTML 3.2 draft (fwd)

Once upon a time Arnoud "Galactus" Engelfriet shaped the electrons to say...
>  <!ATTLIST FORM
>         action %URL #IMPLIED  -- server-side form handler --
>was changed to
>         action %URL #REQUIRED -- server-side form handler --

Unless I'm mistaken you can't have FORM elements out side of a FORM, and
sometimes you want JavaScript to display things - and it needs a textfield.
I guess you can out in a bogus ACTION - but it seems nicer not to force
dummy fields:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html><head>
<title>test javascript</title>
<LINK REV=MADE HREF="mailto:spider@livingston.com">
<SCRIPT LANGUAGE="JavaScript">
<!--
function showtime() {
var now = new Date() ;
var hours = now.getHours() ;
var minutes = now.getMinutes() ;
var seconds=now.getSeconds() ;

timeValue = " " + ( (hours > 12) ? hours  -12 :hours )
timeValue += ( (minutes < 10) ? ":0" : ":") + minutes;
timeValue += ( (seconds < 10) ? ":0" : ":") + seconds;
timeValue += ( (hours >= 12) ? "P.M." : "A.M." )
document.forms[0].face.value = timeValue;
timerID = setTimeout ("showtime()", 1000);
timerRunning = true;
}
// Netscapes clock - Stop -->
</SCRIPT>
</head>

<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#b245b0" alink="#2cbfe5" onLoad="showtime()">
<FORM>
<INPUT TYPE="text" NAME="face" SIZE="15">
</FORM>
</body></html>

That works.

(I happened to have this kicking around, I debugged it for someone on a
HWG mailing list earlier today.)

>        width   %Pixels  #IMPLIED  -- suggested cell width --
>        height  %Pixels  #IMPLIED  -- suggested cell height --
>were added to the attribute list of (th|td).

Well, guess I have to stop telling people not to use it. :-)

-MZ
--
Livingston Enterprises - Chair, Department of Interstitial Affairs
Phone: 800-458-9966 510-426-0770 FAX: 510-426-8951 megazone@livingston.com
For support requests: support@livingston.com  <http://www.livingston.com/> 
Snail mail: 6920 Koll Center Parkway  #220, Pleasanton, CA 94566

Received on Thursday, 15 August 1996 22:03:12 UTC