[Bug 17258] New: can range object support text/word/sentence based range setting?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17258

           Summary: can range object support text/word/sentence based
                    range setting?
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM
        AssignedTo: annevk@annevk.nl
        ReportedBy: eric.sun@huawei.com
         QAContact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org


Hi, we are developing  web based programming tool.
Grammar highlight and auto-complete are features we want in the tool.
But we find it is hard and not flexible when using existing node based range
object method: setStart(node,offset),setEnd(node, offset) to implement it.

Can we add another style method which have been support in IE, similar with
moveStart("character",1) or moveStart("word",2) etc, it will give more
flexibility for our development.

what's more, can we let range object support execCommand method to directly set
the font,color,background etc, without another call of document.execCommand.

expecting your feedback.
thanks

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Thursday, 31 May 2012 02:05:37 UTC