Re: [selection-api] unsigned long is never negative (#33)

So major browsers behave differently according to http://jsfiddle.net/bwLsspuk/

Both WebKit and Blink doesn't do anything (since their IDL says offset is signed long).  Firefox throws an exception.  Does WebIDL automatically throws IndexSizeError when we try to coerce a negative number to an unsigned long type?

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/issues/33#issuecomment-130500350

Received on Thursday, 13 August 2015 01:38:47 UTC