Jorge wrote:
On Mon, Apr 14, 2008 at 05:22:44AM +0000, corvid wrote:
Committed! (with some changes).
Wow. I expected to have to go through a few iterations...
- If the image could not be loaded and you click on the alt text, the click position is sent, even though it's not meaningful.
Is there a standard/suggested behaviour in this case?
All the spec said was: "When a pointing device is used to click on the image, the form is submitted and the click coordinates passed to the server. The x value is measured in pixels [p.52] from the left of the image, and the y value in pixels [p.52]r from the top of the image. The submitted data includes name.x=x-value and name.y=y-value where "name" is the value of the name attribute, and x-value and y-value are the x and y coordinate values, respectively." Let's see what our friend Firefox does: - it _never_ sends name=value. - for alt text, you get name.x=&name.y= - if you tab to an image and press enter to submit, you get name.x=0&name.y=0 - If you click on an image, you get name.x=n&name.y=m