robnyman / domassistant

Automatically exported from code.google.com/p/domassistant
1 stars 0 forks source link

setStyle('display', 'none') doesn't hide relative positioned input box in IE6/7 #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Running this html:
<html>
<head><script 
src="http://www.leadstoloyals.com/lime/domassistant/DOMAssistantCompressed-
2.8.js" type="text/javascript"></script></head>
<body> 
<a href="#" onclick="$(inpid1).setStyle('display', 'none')">hide using 
setStyle, leaves the input box</a><br> 
<a href="#" onclick="$(inpid1).style.display='none';">hide using 
style.display, works as expected</a> 
<input id=inpid1 style="position: relative;" value="content of input box"> 
</body>
</html>

What is the expected output? What do you see instead?
-When I click on the first link, I expect to see the entire input box to 
become invisible (as happens when you click on the second link.)
-But what happens when I click on the first link, the contents of the 
input box becomes invisible, but the input box itself remains visible.

What version of the product are you using? On what operating system?
- DOMassistant 2.8 with IE6 and IE*

Please provide any additional information below.
- DOM assistant 2.7.4 had the same problem.
- FF3, Chrome2 and Safari3 work as expected (with any DOMassistant version)

Note: When you remove style="position: relative;" in 
the input definition, it all works as expected with setStyle 
('display', 'none')  !!!

Original issue reported on code.google.com by c.wester...@gmail.com on 21 Jul 2009 at 6:59

GoogleCodeExporter commented 9 years ago
Could you, if possible, remove the domain part of the script src?

Original comment by c.wester...@gmail.com on 21 Jul 2009 at 7:02

GoogleCodeExporter commented 9 years ago
Sorry, I can't change the content of your report. This bug is confirmed in all 
versions 
of IE - could be an IE bug but workaround is required nonetheless.

Original comment by chengh...@gmail.com on 21 Jul 2009 at 8:13

GoogleCodeExporter commented 9 years ago
Fixed in r497.

Original comment by chengh...@gmail.com on 21 Jul 2009 at 1:25

GoogleCodeExporter commented 9 years ago
Fix confirmed in IE6 and IE7. Thanks.

Original comment by c.wester...@gmail.com on 21 Jul 2009 at 1:46