The DOCTYPE isn't important. Pick any standards invoking DOCTYPE you like. Some will be easier to validate to than others though. Pick the one that has the fewest errors and work from there.
That link is on your own computer. I will need a live link to be of much more help.
What I would do is load the page in the browser, perhaps posting to it if need be to get it to load up. Once it's in the browser, it can be validated. However, the browser might be error correcting it, so you may have to compare the view sorce of the browser to the actual code of the page to tell.
If I had the full code of the page, I might be able to tell something from that.
The reason why using the #requestpgr might be a part of the problem is that where it is, or how it is there might be more invalid than the rest of the page. You can try loading the entire page into a display none div, then appending the element with the id of requestpgr to your target div. Something like:
Code:
var temp = $('<div style="display: none;"></div>').prependTo(document.body);
temp.load('<?php echo get_site_url(); ?>requestpassword', function(){
$('#loader').append('#requestpgr', temp);
temp.remove();
});
Added Later:
If the above code doesn't work, it might still write the external page to temp div. If you remove the 2 highlighted lines, you can use IE 8's developer tools to look at the temp div and see what's in there. You can even copy its HTML to run through the validator.
Another thing I'm thinking is that if requestpassword is a page, give it the php extension and use it with that in the command.
Bookmarks