[jQuery] Problem with $(document).ready in FF 2.0.0.3 when dom is malformed
<div>Hello John et al,</div>
<div> </div>
<div>While working on the Validation Plugin provided by jquery, I had a very strange issue with $(document).ready() which was not firing my functions in FF <a href="http://2.0.0.3">2.0.0.3</a>.</div>
<div> </div>
<div>Whenever I put a setTimeout call with 500 ms delay inside of it, it worked fine. Which made me think if doconReady is unreliable.</div>
<div> </div>
<div>Checking my code further, there was some external elements in the page that came with their own html/head tags (ie they were redefined in the page making the dom corrupt).</div>
<div> </div>
<div>Because of this case, I was facing issues in FF. Probably firefox is stricter when it comes to malformed DOM?</div>
<div> </div>
<div>Whatever be the case, could someone look into this? Have a test page where you have normal flow but then towards the end after </body> you have another html/head/body..which is not closed. This can happen due to ads, etc...
</div>
<div> </div>
<div>Thanks,
Mandy.</div>