W3C home > Mailing lists > Public > public-webapps-bugzilla@w3.org > November 2012

[Bug 20171] New: There is no clear statement when APIs for the text field selections can be applied

From: <bugzilla@jessica.w3.org>
Date: Fri, 30 Nov 2012 12:11:51 +0000
To: public-webapps-bugzilla@w3.org
Message-ID: <bug-20171-2532@http.www.w3.org/Bugs/Public/>

            Bug ID: 20171
           Summary: There is no clear statement when APIs for the text
                    field selections can be applied
    Classification: Unclassified
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: major
          Priority: P2
         Component: DOM
          Assignee: annevk@annevk.nl
          Reporter: termi1uc1@gmail.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org

Created attachment 1251
  --> https://www.w3.org/Bugs/Public/attachment.cgi?id=1251&action=edit
Different behavour between {FireFox, Opera} and Chrome

Spec say: "For input elements, calling these methods while they don't apply,
and getting or setting these attributes while they don't apply, must throw an
InvalidStateError exception."
No browser has implemented InvalidStateError error. And the is no clear
statement, that does "while they don't apply" mean.

Can we call element.setSelectionRange while element has no focus?

The are two different model in browsers I tested:

1. FireFox and Opera, set selectionStart and selectionStart values without
setting focus.
2. Chrome, set selectionStart and selectionStart values with setting focus to
current element.

Both behavior seams wrong. But Chrome behavior is worse, due it broke events

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 30 November 2012 12:11:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:04:28 UTC