document.GetElementById.foobar doesn't exist

RESOLVED INVALID

Status

()

--
major
RESOLVED INVALID
16 years ago
10 years ago

People

(Reporter: Bugzilla-Mozilla, Assigned: jst)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212

I will attach an example test file.  In this test file, IE will respond with L
and X, as expected, since they use document.all.whatever.  However, there is no
duplicate function for Mozilla, using a vast number of different combinations of
properties.

Reproducible: Always

Steps to Reproduce:
1. Get test.html file.
2. Put mouse over each of the sentences.

Actual Results:  
Nothing happened.

Expected Results:  
At least one of the sentences should disappear or resize.

This is a severe issue with the capabilities of Mozilla's JS interface with the
DOM model.  If you can't reference to an object on an HTML page and change a
style type for it, what's the point?  That's about 90% of the purpose of the DOM.
(Reporter)

Comment 1

16 years ago
Created attachment 110926 [details]
Test Case
getElementById() is a function, to be used as:

document.getElementById("ccc").style.font = "whatever";

getElementsByName() (note the "s") is also a function that returns a list;
typical usage:

document.getElementsByName("aaa")[0].style.font = "something"

I suggest giving
http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#i-Document and
http://www.w3.org/TR/2002/PR-DOM-Level-2-HTML-20021108/html.html#ID-26809268 a read.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → INVALID
(Reporter)

Comment 3

16 years ago
Hell, I tried brackets (which Mozilla would translate back into a.b form), but
didn't try ()s.  Anyway, with the changes, B/D and N/P work with Mozilla. 
Unfortunately, the W3 didn't help much (I already consulted that), but I'm sorry
to bother you.

Updated

10 years ago
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.