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

Bug: Backspace deletes wrong text in pre

From: Leon Stringer <leon.stringer@ntlworld.com>
Date: Mon, 4 Aug 2008 12:00:58 +0000
To: <www-amaya@w3.org>
Message-Id: <20080804120058.TMFQ18637.aamtaout04-winn.ispmail.ntl.com@smtp.ntlworld.com>

Hi,

If you select a line of text in a 'pre' element and press the 
Backspace key, the characters before the selection are deleted, not
the highlighted text as expected.

Test case:

1. Create a new XHTML document.

2. Select Insert->Preformatted (pre) from the menu.

3. Type a few words, press enter, then type some more words. E.g.

   Testing testing testing<Enter>
   Testing testing testing

4. Select all characters on the second line with the mouse (i.e. so
   that the whole line is selected).

5. Press Backspace.

Expected results:

   The second line is deleted.

Actual result:

   The last character of the first line is deleted.

Regards,

Leon...

-----------------------------------------
Email sent from www.virginmedia.com/email
Virus-checked using McAfee(R) Software and scanned for spam
Received on Monday, 4 August 2008 12:01:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:56 UTC