[Webkit-unassigned] [Bug 78361] New: Selectively retrieve text content around a given position

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 10 09:09:34 PST 2012


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

           Summary: Selectively retrieve text content around a given
                    position
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: leandrogracia at chromium.org
                CC: tonyg at chromium.org


Hi,

We are interested in retrieving a string containing the text content around a given VisiblePosition in a way that lets us extract a text range from it later. For example, we tap in a position inside a paragraph of text, retrieve about 50 characters around the tapped position into a string, operate it and then recover a text Range based on offsets of the extracted string. We also want to perform this selectively: we don't want to enter any form controls during the text content retrieval.

To achieve this we've developed a class called for now 'DOMTextContentWalker' (see the patch for details). We would like your opinion about including this in WebCore so that other ports might be able to make use of it, and if so were should it be included. A first proposal could be WebCore/dom given the kind of operation it performs, although it's not part of the DOM API. We're also open to place this in a WebKit API in case this doesn't seem useful for other ports. Any suggestions and opinions are welcome.

As usual, we will provide a layout test or this feature once it's clear what should be done about it.

Thanks,
Leandro

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