Summary: | [test-case] khtml ecma behaviour differs when style="display:none" | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Alexander Stepanov <sam> |
Component: | khtml ecma | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.5 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Alexander Stepanov
2006-01-26 16:50:40 UTC
Bug confirmed on KDE 3.5.5 / Kubuntu 6.10. Example test case available give above now available online at http://www.mutube.com/x/kde/bug120820.html This bug seems to be related to #71809 although I have been unable to reproduce the visible/hidden difference mentioned on that bug. KDE 3.5.5 / FreeBSD 6.2-RC2.
> I have been unable to reproduce the visible/hidden difference
Browser should visibly do nothing when "Replace hidden" is clicked but goes to google instead.
The problem is iframe object has no contentDocument property when hidden. Simple test case:
<html>
<body>
<iframe id="test"></iframe><br>
<a href="#"
onclick="object=document.getElementById('test').contentDocument;
alert(object); return false">Get object</a> |
<a href="#"
onclick="document.getElementById('test').style.display='none';
return false">Hide iframe</a> |
<a href="#"
onclick="document.getElementById('test').style.display='';
return false">Show iframe</a>
</body>
</html>
1. Click 'Get object'. Note alert text. Looks good.
2. Click 'Hide iframe'.
3. Click 'Get object'. Note alert text. 'null' in my case.
4. Click 'Show iframe'.
5. Click 'Get object'. Note alert text. Looks good.
6. Compare with Mozilla
The visible/hidden difference I can't reproduce is in the /other/ bug not this one! This bug's behaviour agreed & confirmed. |