Closed Bug 19390 Opened 25 years ago Closed 25 years ago

document.layers unavailable

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: belg4mit, Assigned: mike+mozilla)

Details

if you do something like:
for( foo in document){ alert(foo); }
layers is there
but if you try to acess document.layers
eg;
for( foo in document.layers){ alert(foo); }
you get an error
eg;

Tokenize Time: Real time 0:0:0, CP time 0.000
JavaScript Error: TypeError: top.Body.document.layers has no properties
URL: http://jerrad.networkengines.com/wharf/menu.html
LineNo: 34
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Marking as INVALID.  Layers aren't supported in Mozilla.

Some text from Eric Krock -

... uses some features supported only on Navigator 4 such as
the LAYER/ILAYER tag, DIV SRC=, and/or document.layers[] in
JavaScript but does not include support for equivalent W3C DOM features.
Thank you for supporting Netscape Navigator.  As a heads-up, please be
advised that these Layer DOM features will not be supported in Navigator 5,
which features
full support for W3C standards such as HTML 4.0, CSS1, XML, and DOM1 instead.
To support W3C standards and make your content accessible to all Mozilla-
and Gecko-based browsers such as Navigator 5, would you please update
your content to add support for HTML 4.0 markup and the W3C DOM?
(You can support both if necessary.) You can find tips on how to do this
at the following URL:
http://sites.netscape.net/ekrock/standards.html

Also, don't miss this FAQ:
http://sites.netscape.net/ekrock/answers.html
Status: RESOLVED → VERIFIED
Verified Invalid.
You need to log in before you can comment on or make changes to this bug.