Closed Bug 188150 Opened 22 years ago Closed 22 years ago

document.GetElementById.foobar doesn't exist

Categories

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

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: Bugzilla-Mozilla, Assigned: jst)

Details

Attachments

(1 file)

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.
Attached file 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
Closed: 22 years ago
Resolution: --- → INVALID
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.
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.

Attachment

General

Creator:
Created:
Updated:
Size: