Modify ↓
Ticket #10695 (closed bug: duplicate)
Inconsistent behaviour of show()
| Reported by: | silesianlordt | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | None |
| Component: | effects | Version: | |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Showing element( for ex. span with display:none) while it is in variable is inconsistent. After adding stored element into DOM it is:
-visible in FF
-not visible in IE, Chrome
<!DOCTYPE HTML >
<html>
<head>
<script type="text/javascript" src="jquery-1.7.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#do').click(function(){
var cloo = $('<span>def</span>');
var place = $('#place');
cloo.show();
place.append(cloo);
});
});
</script>
<style type="text/css">
span {display:none;}
</style>
</head>
<body>
<div id="do">DO</div>
<div id="place"></div>
</body>
</html>
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
