This question is about HTML code comments
<!-- like so --> rather than about post/page comments. I specify the WYSIWYG, but this problem arose in the HTML view, not the Visual.
I've been building a site for a client, and she came to me with a problem — she had tried to comment out part of her page content, and it had drastically changed the behavior of the page!
I looked into it, and was pretty surprised to find that putting a comment anywhere into the content would completely remove that entire block of content. And not just that, it seemed to be confusing WordPress as to what
the_content() for that page even was. The content from the sidebar, if there was one, or the footer, if there was no sidebar, would work its way into the main content display area.
The only context in WP I've seen
<!-- this --> before was in using the DagonDesign sitemap generator plugin, which you display by putting a
<!-- commented out shortcode --> into the page content. That seems to have been co-opted for a special purpose, but is there a purpose for the comment tag that I am not familiar with?
Does anyone have insight into what's going on here?