Closed Bug 281143 Opened 20 years ago Closed 20 years ago

Input type=image should generate default .x and .y cordinates even if the src attribute is missing.

Categories

(Core :: DOM: Core & HTML, defect)

x86
All
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 258621

People

(Reporter: hd1080, Assigned: MatsPalmgren_bugz)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 The following tag <input type="Image" alt="Search"> should generate x and y coordinates when a postback occurs. Currenty, the .x and .y coordinates are empty. They should alteast contain the value 0. Reproducible: Always Steps to Reproduce: Consider the following code: <html> <body> <form method="Get" action="test.html"> <input type="image" name="searchbtn" alt="hello" border="0"> </form> </body> </html> Click the text that gets rendered. Actual Results: If you click the text, the url contains the following: test.html?searchbtn.x=&searchbtn.y= Expected Results: .x and .y should atleast be 0. Here is additional information that discusses this issue with lynx browsers. http://www.htmlhelp.com/feature/art3c.htm
Assignee: firefox → form-submission
Component: General → HTML: Form Submission
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Attached file Reporter's testcase
Keywords: testcase
OS: Windows XP → All
###!!! ASSERTION: Form control has a frame, but it's not a form frame: 'Error', file nsGenericHTMLElement.cpp, line 2249 'imageControlFrame' is NULL: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/content/html/content/src/nsHTMLInputElement.cpp&rev=1.379&root=/cvsroot&mark=2169,2179,2184-2185#2160 It's an easy kill, but I going to make an attempt to get rid of the ASSERT at the same time...
Assignee: form-submission → mats.palmgren
Status: UNCONFIRMED → NEW
Ever confirmed: true
Mats, the assert is bug 230589. This bug, as filed, is a duplicate of bug 258621. Please see that bug for an explanation of why our behavior is what it is and why it's not changing. *** This bug has been marked as a duplicate of 258621 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: