Re: Proper Form Coding

Hmmm. That would be a bug in the validator. (Albeit a fairly minor one,
assuming the form element is closed in the original.) Unless I am
interpreting SGML too strictly. The nice thing about XML is unambiguous
syntax. Sigh.

Charles



On Fri, 14 Apr 2000, Kelly Ford wrote:

  Hi Charles,
  
  Do you know why <http://validator.w3.org> would accept the code I mentioned 
  as valid?  I copied what I shared here from a longer document at 
  <http://www.teleport.com/~kford/formtest.htm> that shows as a valid 
  document when I test it.  That document has the closing form tag and such 
  but the table and paragraph stuff is identical to what I shared here.
  
  Kelly
  
  At 03:16 PM 4/14/00 -0400, you wrote:
  >Hi Kelly,
  >
  >this seems like a bug in your screen reader, although the code as included
  >here is not valid. The table should not appear inside a paragraph, and you
  >need the closing tag for the form...
  >
  >Cheers
  >
  >Charles
  >
  >On Fri, 14 Apr 2000, Kelly Ford wrote:
  >
  >   Hi All,
  >
  >   Again if there are pointers on this please direct me to appropriate
  >   resources.  I've been experimenting with ways to ensure that a screen
  >   reader will read the correct text for things like edit boxes and such on
  >   forms.
  >
  >   If I exclude the table references in the below example I hear all the text
  >   read as a prompt.  If I include the table references I only hear the direct
  >   instruction to enter a name.
  >
  >   What's the best way to code things so a screen reader will only read the
  >   direct instruction?  Is my method acceptable?
  >
  >   <FORM METHOD="POST" ACTION="bogus-script">
  >   An edit box is where you type information.
  >   <p>
  >   <table>
  >   <tr>
  >   <td>
  >   Please enter your name:
  >   <INPUT TYPE="text" NAME="name">
  >   </td>
  >   </tr>
  >   </table>
  >   <p>
  >
  >
  >
  >--
  >Charles McCathieNevile    mailto:charles@w3.org    phone: +61 (0) 409 134 136
  >W3C Web Accessibility Initiative                      http://www.w3.org/WAI
  >Location: I-cubed, 110 Victoria Street, Carlton VIC 3053
  >Postal: GPO Box 2476V, Melbourne 3001,  Australia
  

--
Charles McCathieNevile    mailto:charles@w3.org    phone: +61 (0) 409 134 136
W3C Web Accessibility Initiative                      http://www.w3.org/WAI
Location: I-cubed, 110 Victoria Street, Carlton VIC 3053
Postal: GPO Box 2476V, Melbourne 3001,  Australia 

Received on Tuesday, 18 April 2000 05:42:52 UTC