Closed Bug 220833 Opened 21 years ago Closed 21 years ago

view page info/forms shows id, not name attribute

Categories

(SeaMonkey :: Page Info, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: deron.meranda, Assigned: db48x)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701

The Forms panel in View Page Info appears to display an input element's "id"
attribute value for the "Field Name" column instead of the "name" attribute. 
The "name" field is most important because that is what is sent back to the web
server on a submit.  This is especially important for radio-button style input
elements since each element must have a unique id value (if present at all), but
should share the same name value (in the same button group).

Reproducible: Always

Steps to Reproduce:
1. Make a simple HTML form with multiple input elements in the form
2. Give each element a unique id value, but sharing the same name value
3. Load the page and then use View Page Info..Forms.

Actual Results:  
Field Name shows the value from the id attribute, not the name attribute.

Expected Results:  
Show the value of the name attribute, regardless of any id attributes.

This is even in standards compliance mode (XHTML 1.0 strict).
The problem seems to be this line:

http://lxr.mozilla.org/mozilla/source/xpfe/browser/resources/content/pageInfo.js#642
Assignee: general → db48x
Status: UNCONFIRMED → NEW
Component: Browser-General → Page Info
Ever confirmed: true
QA Contact: general → pmac
huh. I'd swear I've fixed that before.
checked in, marking fixed
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
(it was fixed in the patch for bug 226752)
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.