The text above should say: "Here is a boring text!" and not "<div id="test">Hello World!</div>".
This is because <!-- and //--> completely disables the javascript in XHTML.
If you are using e.g. Internet Explorer 6 that doesn't support XHTML. You will see "<div id="test">Hello World!</div>".