J
Jason Pierce
I just entered this on the closest thing I could find to a
bug report
(http://register.microsoft.com/mswish/suggestion.asp?
from=cu&fu=%2Fisapi%2Fgomscom%2Easp%3Ftarget%3D%2Fmswish%
2Fthanks%2Ehtm). Hopefully, someone will see it. Just
wanted to make it know here, too.
I have a bug report for IE 6.0.2800.1106.xpsp2.030422-1633
Setting the getAttribute('style').cssText = 'display:
none' has a bug when it comes to SELECT/OPTIONS in an html
form. If you use this code on a section that has a select
list, it will not hide the select list but will instead
leave it floating over whatever text is supposed to be
there. However, if you use style.display = 'none', it
hides it correctly. This bug seems to only affect SELECT.
Below is a good example html page. Click back and forth
between the first two options. Note the floating select.
Then try clicking back and forth between the second two
options.
<html>
<body>
<form>
<input type="radio" name="test1" value="Off"
onclick="document.getElementById
('testsection').getAttribute('style').cssText = 'display:
inline'">getAttribute('style').cssText = 'display:
inline'<br>
<input type="radio" name="test1" value="On"
onclick="document.getElementById
('testsection').getAttribute('style').cssText = 'display:
none'">getAttribute('style').cssText = 'display: none'<br>
<hr>
<input type="radio" name="test2" value="Off"
onclick="document.getElementById
('testsection').style.display = 'inline'">style.display
= 'inline'<br>
<input type="radio" name="test2" value="On"
onclick="document.getElementById
('testsection').style.display = 'none'">style.display
= 'none'<br>
<hr>
<p id="testsection" style="display: inline">
foo foo foo<br>
<select name="amigoUpdatedDay" size=2>
<option value="--" selected>--</option>
<option value="01">01</option>
</select><br>
<textarea name="description" cols="70"
rows="10"></textarea><br>
<input type="radio" name="test1" value="On"">On<br>
<input type="radio" name="test2" value="Off"">Off<br>
bar bar bar<br>
</p>
one<br>
two<br>
three<br>
five<br>
six<br>
seven<br>
</form>
</body>
</html>
bug report
(http://register.microsoft.com/mswish/suggestion.asp?
from=cu&fu=%2Fisapi%2Fgomscom%2Easp%3Ftarget%3D%2Fmswish%
2Fthanks%2Ehtm). Hopefully, someone will see it. Just
wanted to make it know here, too.
I have a bug report for IE 6.0.2800.1106.xpsp2.030422-1633
Setting the getAttribute('style').cssText = 'display:
none' has a bug when it comes to SELECT/OPTIONS in an html
form. If you use this code on a section that has a select
list, it will not hide the select list but will instead
leave it floating over whatever text is supposed to be
there. However, if you use style.display = 'none', it
hides it correctly. This bug seems to only affect SELECT.
Below is a good example html page. Click back and forth
between the first two options. Note the floating select.
Then try clicking back and forth between the second two
options.
<html>
<body>
<form>
<input type="radio" name="test1" value="Off"
onclick="document.getElementById
('testsection').getAttribute('style').cssText = 'display:
inline'">getAttribute('style').cssText = 'display:
inline'<br>
<input type="radio" name="test1" value="On"
onclick="document.getElementById
('testsection').getAttribute('style').cssText = 'display:
none'">getAttribute('style').cssText = 'display: none'<br>
<hr>
<input type="radio" name="test2" value="Off"
onclick="document.getElementById
('testsection').style.display = 'inline'">style.display
= 'inline'<br>
<input type="radio" name="test2" value="On"
onclick="document.getElementById
('testsection').style.display = 'none'">style.display
= 'none'<br>
<hr>
<p id="testsection" style="display: inline">
foo foo foo<br>
<select name="amigoUpdatedDay" size=2>
<option value="--" selected>--</option>
<option value="01">01</option>
</select><br>
<textarea name="description" cols="70"
rows="10"></textarea><br>
<input type="radio" name="test1" value="On"">On<br>
<input type="radio" name="test2" value="Off"">Off<br>
bar bar bar<br>
</p>
one<br>
two<br>
three<br>
five<br>
six<br>
seven<br>
</form>
</body>
</html>