Closed Bug 253408 Opened 20 years ago Closed 11 years ago

Use of document.all.tags results in suggestion to use getElementById instead of getElementsByTagName

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: schapel, Unassigned)

Details

Attachments

(1 file)

Steps to reproduce:

1. Open the first attachment.
2. Click on the text.

Actual Results:
The JavaScript console says "Non-standard document.all property was used. Use
W3C standard document.getElementById() instead."

Expected Results:
The JavaScript console says "Non-standard document.all.tags property was used.
Use W3C standard document.getElementsByTagName() instead."

This will help web designers fix their document.all code.
(In reply to comment #0)
> Expected Results:
> The JavaScript console says "Non-standard document.all.tags property was used.
> Use W3C standard document.getElementsByTagName() instead."

It also should indicate the file and line number.

(In reply to comment #2)
> It also should indicate the file and line number.

that's bug 253405
(In reply to comment #3)
> (In reply to comment #2)
> > It also should indicate the file and line number.
> that's bug 253405

I had read Bug 253405 to be about the warning for document.all, and I wished to 
be certain that the file name and line number would be indicated for the 
document.all.tags warning as well.

Also, my reading was that the bug "fixes" concerning document.all (I see 
the "undetected support" as ill-advised hacks that should be backed out, but I 
anticipate that it will be rammed through despite many objections) would issue 
a warning only once, for the first instance.  If these hacks are not backed 
out, the file(s) and line(s) should be indicated for every instance of 
document.all and/or document.all.tags
Assignee: general → nobody
QA Contact: ian → general
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: