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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: schapel, Unassigned)
Details
Attachments
(1 file)
178 bytes,
text/html
|
Details |
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.
Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
(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.
Comment 3•20 years ago
|
||
(In reply to comment #2) > It also should indicate the file and line number. that's bug 253405
Comment 4•20 years ago
|
||
(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
Updated•15 years ago
|
Assignee: general → nobody
QA Contact: ian → general
Updated•11 years ago
|
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.
Description
•