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)
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
Reporter | ||
Comment 1•24 years ago
|
||
Assignee | ||
Updated•24 years ago
|
Assignee | ||
Comment 3•24 years ago
|
||
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
Assignee | ||
Updated•24 years ago
|
Summary: <select> without <form> inaccesible from JavaScript → [FRM]<select> without <form> inaccesible from JavaScript
Assignee | ||
Comment 5•24 years ago
|
||
will try to get this in
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.
Comment 10•23 years ago
|
||
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.
Comment 11•23 years ago
|
||
Comment 12•23 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•