Closed Bug 5629 Opened 25 years ago Closed 23 years ago

[LAYER] can't access style elements via document.ELEMENTNAME

Categories

(Tech Evangelism Graveyard :: English US, defect, P2)

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: desale, Assigned: bc)

References

Details

Can not access style elements. Product: Seamonkey [Apprunner/Viewer] Build: 04-27-13. Platform: PC. OS: Windows-95. Steps to Reproduce Bug: 1] Please copy HTML code I'm providing, and save as HTML file. 2] Open this HTML file in apprunner as well as viewer. 3] You'll see one division on upperleft corner called "I'm mover.." 4] You'll see some othe div's also. Then there is one Text box called "Result Text Box". 5] Then there are three buttons "Check Div top", "Check Div Left", and "Reset". 6] Click first two buttons one by one, click as many times you want. 7] Reset button is for resetting the text box. Expected Results: After clicking button "Check Div top", the "Result Text Box" should show the top of div which is set to "9" in style "mover". Again after clicking button "Check Div Left", the "Result Text Box" should show the left of div which is set to "20" in style "mover". Actual Results: "Result Text Box" does not show ant values. Code: <html> <head> <title>Test Page</title> </head> <SCRIPT LANGUAGE="JavaScript1.1"> function report(text) { var value=document.workform.result.value; var msg= value+ " " +text; document.workform.result.value=msg; } </SCRIPT> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- if (navigator.platform) { if (navigator.platform.substring(0,3) == "Mac") { if (navigator.appName == "Microsoft Internet Explorer") { document.writeln('<LINK TYPE="text/css">'); document.writeln('#mover {position: absolute; left: 20; top: 9; font-size:36pt;}'); document.writeln('</LINK>'); } else if (navigator.appName == "Netscape") { document.writeln('<LINK TYPE="text/css">'); document.writeln('#mover {position: absolute; left: 20; top: 9; font-size:36pt;}'); document.writeln('</LINK>'); } } else if (navigator.platform.substring(0,3) == "Win") { if (navigator.appName == "Microsoft Internet Explorer") { document.writeln('<STYLE TYPE="text/css" >'); document.writeln('#mover {position: absolute; left: 20; top: 9; font-size:36pt;}'); document.writeln('</STYLE>'); } else if (navigator.appName == "Netscape") { document.writeln('<STYLE TYPE="text/css" >'); document.writeln('#mover {position: absolute; left: 20; top: 9; font-size:36pt;}'); document.writeln('</STYLE>'); } } } //--> </SCRIPT> <body > <Div ID="mover">I'm mover...</Div> <Div ID="mover1">I'm mover1...</Div> <Div ID="mover2">I'm mover2...</Div> <Div ID="mover3">I'm mover3...</Div> <Div ID="mover4">I'm mover4...</Div> <form name="workform"> Result Text Box:<INPUT TYPE=text name="result" size=60><br><br> <input type="button" name"b1" value="Check Div Top" onClick="report(document.mover.top);"> <input type="button" name"b1" value="Check Div Left" onClick="report(document.mover.left);"> <input type="reset" value="Reset"> </form> </body> </html>
QA Contact: 4015 → 4616
Well...this probably works in 4.x for a couple of reasons: 1) Positioned elements in 4.x were reflected as Layers. Currently, we don't have complete support for layers (and may not for 5.0). 2) I believe the ID attribute could be used to reference an element directly by name off the document only for layers. For backwards compatibility we do support the referencing of forms, images, layers, embeds and applets by their NAME attribute value. Either way, this goes along with the rest of the layers bugs that may or may not be fixed for 5.0.
Status: NEW → ASSIGNED
Summary: Can not access style elements. → [LAYER]Can not access style elements.
Target Milestone: M9
Assignee: vidur → ekrock
Status: ASSIGNED → NEW
Assigning all layers bugs to ekrock.
Blocks: 8023
Status: NEW → ASSIGNED
Target Milestone: M9 → M15
Setting all LAYER bugs to M15 for as-time-allows evangelism.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → LATER
Summary: [LAYER]Can not access style elements. → [LAYER] can't access style elements via document.ELEMENTNAME
Interesting question of whether we should expose named elements as document.ELEMENTNAME as a DOM extension for a bit of backward compatibility. Marking LATER for possible later consideration but we probably won't have time to implement nonstandard access convention extensions for FCS. LATER. LAYER, ILAYER, document.layers[] not supported in Gecko/Nav5. Closed. Notified reporter and site owner via template at http://sites.netscape.net/ekrock/fixit/layer.html In the future, if possible, please INVALID, notify, and close such bugs directly using that template without assigning to me. Thanks!
Status: RESOLVED → VERIFIED
[LAYER] Bug. Marking Verified.
Moving all [LAYER] bugs to Evangelism component for tracking and open-source evangelism by mozilla community members of sites that need to upgrade to support web standards such as HTML 4.0 (instead of LAYER/ILAYER) and the W3C DOM (instead of Nav4 document.layers[] or IE document.all()). Sites should be lobbied to do the upgrade using the email templates that are linked to from http://www.mozilla.org/newlayout/bugathon.html#layerbugs . When a site's owner has confirmed receipt of the message requesting an upgrade, the bug should be marked with the keyword evangelized to indicate that evangelism for that bug is complete. When the site finishes the upgrade and supports standards, the bug should be closed.
Assignee: ekrock → nobody
Status: VERIFIED → NEW
Component: DOM Level 1 → Evangelism
Keywords: evangwanted
QA Contact: desale → nobody
Target Milestone: M15 → ---
Status: NEW → RESOLVED
Closed: 25 years ago24 years ago
Resolution: LATER → INVALID
Closing all Evangelism bugs where no evangelism is needed because page has been fixed, site is internal to Netscape, report is a DUP, or bug report is no longer appropriate for evangelism for any other reason.
SPAM:Changing QA contact on 111 evang bugs as I am now the new QA contact for this component. Sorry about the spam zach
QA Contact: nobody → zach
Reassigning Evangelism bugs to me, the component's new owner. I would like to take this opportunity to thank nobody@mozilla.org for all of his dedication, contributions, and hard work, and wish him luck at his new job. Thanks, nobody.
Assignee: nobody → BlakeR1234
Status: RESOLVED → NEW
workaround bugzilla problem that caused a bunch of evangelism bugs to be NEW/INVALID, NEW/FIXED, NEW/WORKSFORME or NEW/DUPLICATE
Resolution: INVALID → ---
Severity: normal → major
Status: NEW → ASSIGNED
OS: Windows 95 → All
Priority: P3 → P2
Hardware: PC → All
Target Milestone: --- → mozilla0.6
-> evangelism@telocity.com for my evangelism bugs. removing the now-depreciated evangelism-related keywords. setting platform to All.
Assignee: blakeross → evangelism
Status: ASSIGNED → NEW
Keywords: evangwanted
Target Milestone: mozilla0.6 → Future
Reassigning evangelism bugs to bclary@netscape.com.
Assignee: evangelism → bclary
This is notabug
Status: NEW → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → INVALID
verified
Status: RESOLVED → VERIFIED
All Evangelism Bugs are now in the Product Tech Evangelism. See bug 86997 for details.
Component: Evangelism → US English
Product: Browser → Tech Evangelism
Target Milestone: Future → ---
Version: other → unspecified
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.