Closed Bug 39953 Opened 24 years ago Closed 23 years ago

[FRM]<select> without <form> inaccesible from JavaScript

Categories

(Core :: Layout: Form Controls, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED WONTFIX
Future

People

(Reporter: vladnc, Assigned: rods)

References

Details

Attachments

(3 files)

From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BuildID:    2000051609

	If I use a <select name = "ObjectName"> without including it in a 
<form>, window . ObjectName (or FrameName . ObjectName) is not defined.

Reproducible: Always

Steps to Reproduce:
  1. Open the test case;
  2. Select option 2;
  3. Click OK.


Actual Results:  Only the first alert is displayed.


Expected Results:  A new alert should be displayed after the initial one.


It works in IE 4 - 5
Attached file Test case
No longer blocks: 39953
Status: UNCONFIRMED → NEW
No longer depends on: 39953
Ever confirmed: true
Moving to M17
Status: NEW → ASSIGNED
Target Milestone: --- → M17
This bug has been marked "future" because at this time it has been determined 
that it is not absolutely critical for RTM (Release To Manufacturing). If 
the reporter and anyone else believe it is necessary to fix this before shipping 
Seamonkey 1.0, please describe your issue in the bug. 
Target Milestone: M17 → Future
Updating QA contact.
QA Contact: ckritzer → bsharma
Summary: <select> without <form> inaccesible from JavaScript → [FRM]<select> without <form> inaccesible from JavaScript
Blocks: 14445
will try to get this in
QA Contact Update
QA Contact: bsharma → vladimire
Is the testcase for this bug valid? In Mozilla and NS4 I think you need to use
document.options.selectedIndex . Unless there are plans to put the named items
onto the window object...
scratch NS4 out of that comment but I think it still holds true for mozilla.
Excellent point.  In fact, select without a form *is* accessible in JavaScript
with document.getElementById().

So this bug boils down to "should form controls be accessible by name."  I have
heard we are deliberately not going to make form controls accessible with
document.name (I had another bug based on that), among other things, to keep
from polluting document's namespace.  It's  definitely not in the spec 
Attaching testcase show which methods work and which don't.  (Only
getElementById() works.)

I suggest WONTFIX unless there's another problem I'm not seeing.
Setting WONTFIX since we're not supporting document.controlname syntax to access
fields.  Reopen if there's something I missed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
verifying
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: