1. A method performed at an electronic device with a touch-sensitive surface, the method comprising: receiving a document from a server, the document including an embedded script; rendering and displaying the document at the electronic device and executing the embedded script, including: establishing a touchevent interface object that includes a plurality of touchlists; and upon detecting one or more touches on the touch-sensitive surface: updating the touchevent interface object with touch data, including values in two or more of the touchlists; and further executing the embedded script in accordance with the values in at least one of the two or more touchlists, wherein: the touchevent interface object includes a plurality of distinct touchlists, a respective touchlist including two or more concurrent touches; and updating the touchevent interface object with touch data includes updating values in two or more of the touchlists.
1. A method performed at an electronic device with a touch-sensitive surface, the method comprising: receiving a document from a server, the document including an embedded script; rendering and displaying the document at the electronic device and executing the embedded script, including: establishing a touchevent interface object that includes a plurality of touchlists; and upon detecting one or more touches on the touch-sensitive surface: updating the touchevent interface object with touch data, including values in two or more of the touchlists; and further executing the embedded script in accordance with the values in at least one of the two or more touchlists, wherein: the touchevent interface object includes a plurality of distinct touchlists, a respective touchlist including two or more concurrent touches; and updating the touchevent interface object with touch data includes updating values in two or more of the touchlists. 7. The method of claim 1 , further comprising: upon detecting a change in at least one of the one or more touches, updating two or more of the plurality of touchlists.