JS not correctly hiding alternative tables

VERIFIED WONTFIX

Status

()

Core
DOM: Core & HTML
P3
normal
VERIFIED WONTFIX
17 years ago
17 years ago

People

(Reporter: mike.clarke, Assigned: jst)

Tracking

Trunk
x86
Windows 98
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

17 years ago
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.
(Reporter)

Comment 1

17 years ago
Created attachment 18101 [details]
Demonstration of the problem
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.
(Assignee)

Comment 3

17 years ago
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
Last Resolved: 17 years ago
Resolution: --- → WONTFIX

Comment 4

17 years ago
VERIFIED wontfix
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.