MIME Test - SGML Comment with JavaScript

Back to the MIME Type Tests.

Traditionally, JavaScript functions are commented out with SGML comments to let the parser know they are not to be parsed. The following JavaScript function has been specified in the head of this document, enclosed in SGML comments.

function pureSGML()
    alert('Pure SGML');

When served as application/xhtml+xml, the function is ignored. When served as text/html, the function is executed. Test Pure SGML Function.