In my code I did something like
$("#jdoe").append("<h3>Test</h3>");
html
<html>
<head>
</head>
<body>
<div id="jdoe"></div>
</body>
</html>
It worked as expected (The text Test displays in a h3), I was expecting that if I do a view source in my browser I would see something like
<html>
<head>
</head>
<body>
<div id="jdoe"><h3>Test</h3></div>
</body>
</html>
Please correct me if my expectations are wrong