- From: nerula <nerula@inwind.it>
- Date: Wed, 26 Jun 2002 22:51:06 +0200
- To: www-dom@w3.org
hi ml, i've tryed to understand which DOM interface internet explorer 5 really uses with this simple script: <html> <body bgcolor="red"> <iframe id="jolly" name="jolly" src="home.html" style="position:absolute; top:0px; left:10px; width:500px; height:500px;"></iframe> <script type="text/javascript"> <!-- var temp=document.getElementById("jolly").style if (temp) { alert(eval(temp)) } //--> </script> </body> </html> i used Opera identified such as ie 5, since i dont have a windows partition. the alert told: [object CSSStyleDeclaration] so i thought this returned true: temp=document.implementation.hasFeature("CSS", "1.0") but i got an error from js console: message: Value on left hand side of '.' is not convertible to Object: document.implementation the same happened with a DOMImplementation interface: var temp=DOMImplementation.hasFeature("CSS", "1.0") however, ignoring this error i used an attribute of CSSStyleDeclaration: alert(temp.lenght) which returned "undefined"...even more: alert(temp.getPropertyValue("left")) the error this time was: message: Attempted to call non-function: has undefined value: 'getPropertyValue' now what does that mean? why i can have an object but i cant use its methods and properties? is this due to the Opera identify utility i used in this experiments? tnx bye -- LINUX USER #250527
Received on Wednesday, 26 June 2002 16:53:17 UTC