.html() not writing out what I'm passing it!
I'm trying to write out the following:
$(this).parents('body').html('<div class="selectbox"><p>test</p></div>');
instead I'm getting:
<body><div class="selectbox"></div><p></p>test</body>
(notice that it's not keeping the correct nesting of elements)
This is happening in Firefox/Safari. I had this working just a few days ago, went back to have a look at the page and noticed it was broken. I'm not sure what I changed.
The page validates to HTML 4.01 Strict and does not get any JavaScript errors in the console.