Closed Bug 58164 Opened 24 years ago Closed 24 years ago

JS not correctly hiding alternative tables

Categories

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

x86
Windows 98
defect

Tracking

()

VERIFIED WONTFIX

People

(Reporter: mike.clarke, Assigned: jst)

Details

Attachments

(1 file)

I have Javascript that alters the display style for autogenerated tables.
The functionality intented is to display one of the tables depending on the
selected item in a dropdown list.

In Bills browser the page functions as expected, in Mozilla build 2000080712
all tables are displayed no matter which item is selected.

Attached should be an example of the generated file.
Mozilla does not support the non-standard document.all object.

I believe the ECMA standard says that you should use document.getElementById(id)
to get at particular elements and document.getElementsByTagName(name) to get at
a list of all the tags of that name.
Boris, you're right, getElementsByTagName() and GetElementsById() is the
standard way of doing things (it's defined in the DOM spec however, not in the
ECMA standard), document.all is a proprietary IE specific property that is not
supported in mozilla. Replacing document.all.tags("...") with
document.getElementsByTagName("...") in the testcase makes it work in mozilla.

Marking WONTFIX.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
VERIFIED wontfix
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: