[Webkit-unassigned] [Bug 85225] getSelection().getRangeAt(9223372036854775811) returns getRangeAt(0)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 30 13:53:58 PDT 2012


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


Erik Arvidsson <arv at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Erik Arvidsson <arv at chromium.org>  2012-04-30 13:53:58 PST ---
This is the correct behavior.

Range getRangeAt(in long index)

According to the spec, http://www.w3.org/TR/WebIDL/#es-long, we should do a ToInt32 and since ToInt32(9223372036854775811) is 0 we are doing the right thing.

PS.

ToInt32 can be written as 

function toInt32(x) {
  return x | 0;
}

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