On Thu, Nov 13, 2008 at 3:40 PM, Sylvain Brunerie sylvain.brunerie@gmail.com wrote:
Is there a way to insert into a page real HTML comments ? I mean, HTML-style comments like <!-- ... --> are stripped on rendering the page. I'd like to insert comments staying as comments in the source code of the generated page.
No, there absolutely is not. That would be unsafe: users could insert arbitrary HTML content in comments and have IE pick it up using IE conditionals. If there were an actual use-case that was of any value, we could strip IE conditional comments and let all others pass . . . which would be safe only assuming there are no other scary abuses of comments out there, and that we get the conditional comment stripping right. If there are no use-cases, it's not worth it.