Closed
Bug 253451
Opened 20 years ago
Closed 20 years ago
document.all should find elements with given name as well as id
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 256640
People
(Reporter: schapel, Unassigned)
References
()
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
Steps to Reproduce:
1. Go to http://www.mortgagetrust.co.uk/
2. Click on "Manage your Accounts" button on top menu
Expected Results:
The "Login id" field should have the keyboard focus.
Actual Results:
The "Login id" field does not have keyboard focus.
IE and Opera both work as expected because document.all(foo) finds elements that
have the name foo as well as the id foo. In this web page, the line:
document.all.N6T1.focus();
causes the element:
<input type="text" name="N6T1" class=bodytextnormal autocomplete=off ...>
to get keyboard focus for this reason.
This enhancement should help the new document.all feature work on more web
pages, as documented in bug 252673 and bug 219325.
Note that the message in the JavaScript console "Non-standard document.all
property was used. Use W3C standard document.getElementById() instead." is going
to be misleading in this case, because changing document.all to
document.getElementById will not work. There should be an additional explanation
that the name needs to be changed to an id in this case.
Reporter | ||
Comment 1•20 years ago
|
||
Reporter | ||
Comment 2•20 years ago
|
||
This seems like it was fixed by the fix for bug 256932.
Comment 3•20 years ago
|
||
This was fixed by bug 256640. Duping.
*** This bug has been marked as a duplicate of 256640 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•