W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2010

Phantom characters

From: Bill Braun <bbraun@hlthsys.com>
Date: Wed, 07 Apr 2010 14:05:18 -0400
Message-ID: <4BBCC95E.8030800@hlthsys.com>
To: "[list-email] W3 Amaya" <www-amaya@w3.org>
Amaya 11.3.1
XP, SP3, all latest patches applied


In a previous post I described erratic behavior when copy/paste is 
followed by using the delete key. This may be related. This is difficult 
to describe; if clarification is needed please so say.

I am using the "^" character to try to show where the cursor is located.

I typically experience this in code that I go back to (that is, it was 
created, saved, and now the document has been reopened for editing). In 
descriptive terms, it seems as if there are hidden characters in the 
code that catch the cursor when it is moved left or right along a string 
of code, but cannot be removed, selectively, with a destructive 
backspace, or with the delete key.


Example code:

<p class="spage">Blah blah blah.</p>

Place the cursor at the end of the line: <p class="spage">Blah blah 
blah.</p>^

Using the left arrow key, move the cursor.

One press of the left arrow key: <p class="spage">Blah blah blah.</p^>

Next press of the left arrow key: <p class="spage">Blah blah blah.</^p>

Next press of the left arrow key: <p class="spage">Blah blah blah.<^/p>

Next press of the left arrow key: <p class="spage">Blah blah blah.^</p>

Now at this point I would expect the next press of the left arrow key to 
position the cursor to the left of the period character. Instead, the 
cursor moves imperceptibly and remains to the right of the period. This 
is illustrated by leaving the caret where it was and adding a second 
caret: <p class="spage">Blah blah blah.^^</p>.

Next press of the left arrow key: <p class="spage">Blah blah blah^.</p>

I am wondering if there is some artifact that finds its way into the 
code that is causing this behavior, and may be related to copy and 
paste, and may explain why using the delete key after copy and paste 
produces the behavior it does (though it is inconsistent).

Hope this is helpful.

Bill Braun
Received on Wednesday, 7 April 2010 18:05:14 UTC

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