Closed Bug 278435 Opened 20 years ago Closed 18 years ago

nfi-info.net - document.elementName

Categories

(Tech Evangelism Graveyard :: English US, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allison.aa, Unassigned)

References

()

Details

The calculator at this URL has default values, which are entered when using IE
but not when using Firefox. Not only reproducible, but I have confirmed that
others have the same problem.
It's using preDefValsPicker.selectedIndex to access the chosen value for a
select element, which amounts to document.preDefValsPicker, which is the
IE-proprietary way of accessing any form element by name in the global (ly
polluted) document namespace.
Assignee: bugs → english-us
Component: Form Manager → English US
Product: Firefox → Tech Evangelism
QA Contact: form-manager → english-us
Summary: Default data not entered into calc form → nfi-info.net - document.elementName
Version: 1.0 Branch → unspecified
How should it be done?
It appears this page does not properly nest the <select> inside of a form. In
fact the page doesn't even have a form.

Typically you would write the html like

<form name="someForm" ...>
  <select name="someSelect">
  ...
  </select>
</form>

Can you contact them asking them to fix their page?
then in using the HTML DOM you would reference the someSelect select element like:
document.forms.someForm.someSelect

There are other ways, but that is fairly common.
Many thanks. I've forwarded the immediately preceeding comment to them. I'm too
new to change status. Maybe there should be a "another IE non-conformity" status ;>)
-> confirm
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.