On 2009/07/28 02:53:04, MikeSamuel wrote:
You should require that the input be valid because otherwise you're allowing access to badly defined behavior.
You should require that the index be valid according to the spec: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-68927016
The spec says it should throw a DOMException INDEX_SIZE_ERR if it's not a long in the range [-1, length]. So do I need to do the check and throw the exception, or can I just pass index through and assume that the browser got it right? http://codereview.appspot.com/98051
