[Webkit-unassigned] [Bug 23189] New: Impossible to place caret at the start of a text node

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 8 10:17:23 PST 2009


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

           Summary: Impossible to place caret at the start of a text node
           Product: WebKit
           Version: 525.x (Safari 3.2)
          Platform: All
               URL: http://www.timdown.co.uk/testcases/range.html
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: timdown at gmail.com


In design mode, it is impossible to place the caret at the start of a text
node. It is possible to create a collapsed Range at the start of a text node
programmatically using JavaScript but if you add that range to the selection,
the caret goes to the end of the node immediately prior to the text node,
contrary to the behaviour in Firefox and Opera.

For example, for the HTML

        Some text <span>more text</span>

you create a collapsed Range at the start of "more text" and add that to the
selection, in Opera and Firefox you get

        Some text <span>|more text</span>

as expected, but in WebKit you get

        Some text |<span>more text</span>

The URL for this bug has a simple test case. Bug #15256 is a special case of
this bug and mentions the general case in the comments.


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



More information about the webkit-unassigned mailing list