Bug Tracker

Ticket #5806: testcase.htm

File testcase.htm, 452 bytes (added by Sebmaster, 10 years ago)

testcase showed the wrong situation

Line 
1<!DOCTYPE html>
2<html>
3<head>
4<script src="http://code.jquery.com/jquery-1.4.min.js"></script>
5</head>
6<body>
7<div id="asd" style="white-space: pre">
8&lt;span&gt;Test&lt;/span&gt; Content after
9</div>
10<script>
11jQuery('#asd').contents().each(function() {
12    jQuery(this).replaceWith('<span>Test</span>Content after');
13    //jQuery(this).replaceWith('<span><span>Test</span>Content after</span>');
14    return false;
15});
16</script>
17</body>