[Webkit-unassigned] [Bug 36378] New: Selection object fails to select the desired element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 19 11:23:01 PDT 2010


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

           Summary: Selection object fails to select the desired element
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tmcrodrigues at gmail.com


I first noticed this bug while working with TinyMCE, and ended up trying to do
things by myself and running into the same issue.

Also, I've found other bugs which seem related to this (like 15921) but I'm not
sure if it's exactly the same problem.

If I want to programatically create a selection I can never get the exact start
and end containers for the element I'm trying to select. Instead, I get either
the parent of the deepest node in the structure (as start and end container),
or if I have text nodes as siblings to an element at the deepest level, those
text nodes are set as the start and end containers.

There might be other situations but the bottom line here is that I never get
what should be expected from the start and end containers.

Both the attached test cases (which illustrate the two situations I described)
should return the div below the body as start and end container (at least from
my understanding of the w3c spec), and that is what happens on Firefox (3.6).

I've tested this on the latest nightly, Safari 4 and Chrome latest dev builds,
on Mac OS X and Ubuntu Linux.

Let me know if I can provide more information.

-- 
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