Bug 17697 - Selection placed after anchor but typing types into anchor
Summary: Selection placed after anchor but typing types into anchor
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 523.x (Safari 3)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://jparent.googlepages.com/trappe...
Keywords: GoogleBug, HasReduction, InRadar
Depends on: 23793
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-06 12:14 PST by Julie Parent
Modified: 2009-02-03 21:56 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julie Parent 2008-03-06 12:14:17 PST
Repro steps:
1. Go to example page: http://jparent.googlepages.com/trappedInAnchorExample.html
2. Notice that the cursor is blinking after "link" and before "afterlink" (startContainer = endContainer = 'afterlink' text node)
3. Type any character

Result: Character goes inside of the link
Expected result: Character goes outside of the link

More dramatic repro:  
1. Set the cursor to select the 'a' in 'afterlink' (change endOffset to 1).  
2. Type any character.
Result: 'a' is deleted and newly typed character is inside the link
Expected result: 'a' is replaced by the character you type.

Also repros in nightly and OS X 10.4.11
Comment 1 David Kilzer (:ddkilzer) 2008-04-23 15:38:34 PDT
<rdar://problem/5885039>
Comment 2 Alexey Proskuryakov 2008-04-23 23:30:11 PDT
See also: bug 15256.
Comment 3 David Kilzer (:ddkilzer) 2008-08-01 15:31:39 PDT
(In reply to comment #1)
> <rdar://problem/5885039>

Marked duplicate of radar for Bug 15256.
Comment 4 Justin Garcia 2009-02-03 21:56:40 PST
We fixed this in http://trac.webkit.org/changeset/38683