W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2003

amaya and forms !!!

From: John Russell <ve3ll@cogeco.ca>
Date: Sun, 20 Jul 2003 14:22:18 -0400
To: www-amaya@w3.org
Message-ID: <3F1AA59A.16393.228768@localhost>
html 4 specification 17.11.1  deals with tabindexing ....  Amaya has
two types of bugs here!! 
1] it does not follow the tab indexing at all
2] readonly elements are supposed to be missed entirely as there is
no point in them obtaining focus.

and additional problem is that amaya allows one to enter data in a read 
only area ....   

sghort demo follows 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>tabIndex Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>tabIndex Test</h1>
<div><table summary="frame"><tr><td>
<form name="calc" action="" method="post">
<fieldset><legend>Body Mass Index Calculator</legend>
<table summary="innerframe"><tr><td><table summary="inputs"><tr>
   <th>Weight in pounds:</th>
   <td><input name="w" type="text" tabindex="1" /></td>
   <th>In kilos:</th>
   <td><input name="mw" type="text" readonly="readonly" /></td>
</tr><tr>
   <th>Height in inches:</th>
   <td><input name="h" type="text" tabindex="2" /></td>
   <th>In metres:</th>
   <td><input name="mh" type="text" readonly="readonly" /></td>
</tr><tr>
   <th colspan="3">Body Mass Index [Wgt(Kg) / Hgt(m)<sup>2</sup>]:</th>
   <td><input name="bmi" type="text" readonly="readonly" /></td>
</tr></table></td><td><table summary="buttons"><tr>
   <td><input name="ca" type="button" value="Calculate"
        tabindex="3" onClick="bodymass(calc);" /></td></tr><tr>
   <td><input name="co" type="button" value="Send comment"
        onClick='top.location.href="mailto:VE3LL@RAC.CA?Subject=[specbmi.js]"' />
        </td></tr><tr>
<td><input name="ab" type="button" value="About" onClick="about()" /></td></tr><tr>
<td><input name="cl" type="button" value="Clear" onClick="clrForm(calc)" /></td>
</tr></table></td></tr></table>
</fieldset></form></td></tr></table></div>
<p>A Body Mass Index of more than 25 indicates that you are <em>overweight</em>.
A BMI factor of 30 or more indicates <em>obesity</em>. Being overweight can
cause many health problems such as heart disease, strokes and diabetes.
And if you should live long enough there is an increased chance of
Alziehmer's. Just a word to the wise.</p>
</body></html>
--
 

John Russell, VE3LL@RAC.CA
http://home.cogeco.ca/~ve3ll (2 L's as in LLAMA)
check HTML at http://www.htmlhelp.com/tools/validator/
check CSS at http://jigsaw.w3.org/css-validator/
check JavaScript at http://www.crockford.com/javascript/jslint.html




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>tabIndex Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>tabIndex Test</h1>
<div><table summary="frame"><tr><td>
<form name="calc" action="" method="post">
<fieldset><legend>Body Mass Index Calculator</legend>
<table summary="innerframe"><tr><td><table summary="inputs"><tr>
   <th>Weight in pounds:</th>
   <td><input name="w" type="text" tabindex="1" /></td>
   <th>In kilos:</th>
   <td><input name="mw" type="text" readonly="readonly" /></td>
</tr><tr>
   <th>Height in inches:</th>
   <td><input name="h" type="text" tabindex="2" /></td>
   <th>In metres:</th>
   <td><input name="mh" type="text" readonly="readonly" /></td>
</tr><tr>
   <th colspan="3">Body Mass Index [Wgt(Kg) / Hgt(m)<sup>2</sup>]:</th>
   <td><input name="bmi" type="text" readonly="readonly" /></td>
</tr></table></td><td><table summary="buttons"><tr>
   <td><input name="ca" type="button" value="Calculate"
        tabindex="3" onClick="bodymass(calc);" /></td></tr><tr>
   <td><input name="co" type="button" value="Send comment"
        onClick='top.location.href="mailto:VE3LL@RAC.CA?Subject=[specbmi.js]"' />
        </td></tr><tr>
<td><input name="ab" type="button" value="About" onClick="about()" /></td></tr><tr>
<td><input name="cl" type="button" value="Clear" onClick="clrForm(calc)" /></td>
</tr></table></td></tr></table>
</fieldset></form></td></tr></table></div>
<p>A Body Mass Index of more than 25 indicates that you are <em>overweight</em>.
A BMI factor of 30 or more indicates <em>obesity</em>. Being overweight can
cause many health problems such as heart disease, strokes and diabetes.
And if you should live long enough there is an increased chance of
Alziehmer's. Just a word to the wise.</p>
</body></html>
Received on Sunday, 20 July 2003 14:21:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 April 2014 11:01:40 UTC