[Bug 11745] New: Feature request: element.replaceSelection(str) should change the text field's value by replacing the current selection with the provided string, which should then be the new selection. This is apparently supported well in IE's proprietary equivalent, and

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11745

           Summary: Feature request: element.replaceSelection(str) should
                    change the text field's value by replacing the current
                    selection with the provided string, which should then
                    be the new selection.  This is apparently supported
                    well in IE's proprietary equivalent, and
           Product: HTML WG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#tex
                    tFieldSelection
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


Specification:
http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#textFieldSelection

Comment:
Feature request: element.replaceSelection(str) should change the text field's
value by replacing the current selection with the provided string, which
should then be the new selection.  This is apparently supported well in IE's
proprietary equivalent, and a MediaWiki developer pointed it out as one of the
significant problems he ran into with the standard approach:
https://secure.wikimedia.org/wikipedia/mediawiki/wiki/User:Catrope/W3C_Range_f
eature_requests#Changing_the_text_contents_of_a_range I think this is simple
enough to spec before implementation, if implementers are interested, to avoid
the whole vendor prefix rigamarole.

Posted from: 68.175.61.233

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 13 January 2011 00:24:00 UTC