W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 1999

Re: prevent deletion of text units around form input element

From: <Irene.Vatton@inrialpes.fr>
Date: Fri, 08 Oct 1999 12:10:20 +0200
Message-Id: <199910081010.MAA05522@tahiti.inrialpes.fr>
To: "Ly, An" <An.Ly@CAI.COM>
cc: www-amaya@w3.org
In-reply-to: Your message of Wed, 06 Oct 1999 15:00:56 -0400."
             <F516E350BFC4D1118F7B00805FC14BC302DE587A@usilmse2.cai.com> 
> Hi,
> 
> I think there's a need to prevent deletion of the 2 text units (previous and
> next siblings) of a form input element. Otherwise, it appears that you can
> end up in a state where you can't enter text before or after the input
> element. For example, if you totally delete the text unit or if you insert
> some elements in it like image. What is the suggested fix?

I agree with you. There are two suggested fixes:
1) Set the page in the read-only mode as soon as the user selects within a
   form input element and reset the previous mode when he/she leaves.

2) Define a specific "Thot exception" which prohibits the moving to another
   element on a backspace command and set that exception to form input 
elements.

I would try to implement the second one.

> Also, is <p> absolutely required before the input element? If not, pseudo p
> may be a better choice as the user does not see it in the code.

The DTD says that the <p> is not absolutely required, but it's cleaner to 
generate
it.

  Irene.
Received on Friday, 8 October 1999 06:10:32 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:20 UTC