[Webkit-unassigned] [Bug 25744] typing does not go where window.getSelection() claims it will after an anchor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 18 01:48:55 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=25744


MORITA Hajime <morrita at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |morrita at google.com




--- Comment #4 from MORITA Hajime <morrita at google.com>  2010-03-18 01:48:54 PST ---
Current behaviour looks expected one.
I tried to fix this then found a conflicting testcase.
See LayoutTest/editing/inserting/insert-before-link-1.html.

Comments on CompositeEditCommand::positionAvoidingSpecialElementBoundary() says 
this behaviour is to align NSTextView. 
To know how NSTextView gives hyperlinks to text programatically, we
can use the test program provided by Apple:
http://developer.apple.com/Mac/library/samplecode/TextLinks/index.html

On the other hand, NSTextView behaviour also looks inconsistent.
While it doesn't give the link to inserted texts, it gives highlight
color to them.  So after insertion, there is a blue-highlighted,
non-linking text, which might be confusing and weird in HTML sense.

So reasonable alternatives are:
1. To keep current behaviour: inserted text after anchor is not give linked.
2. To give link for the inserted text. (I'll submit a patch shortly.)

I prefer 1 for the reason eric mentioned. But we need a consensus.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list