<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- $Id: htmlorxml3.html,v 1.1 2002/01/11 10:52:31 plehegar Exp $-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head> 
    <title>Test your browser</title>
    <script type='text/javascript'>
<!--
function init() {

    // detect the DOM
    if (document.implementation
	&& document.implementation.hasFeature
	&& (document.implementation.hasFeature("HTML", "1.0")
	    || document.implementation.hasFeature("XML", "1.0")
	    || document.implementation.hasFeature("HTML", "2.0"))) {

	var body = document.getElementsByTagName("body").item(0);

	var p = document.getElementById("w3c_id");

	p.removeChild(p.firstChild);

	if (body.nodeName == "BODY") {
	    // oups, XML is case sensitive!
	    p.appendChild(document.createTextNode(
             "Your user agent exposes the document as HTML :-("));
	} else {
	    p.appendChild(document.createTextNode(
           "Your user agent exposes the document using the DOM XML! :-)"));
	}
    }
}
-->
    </script>
    <link href="/StyleSheets/TR/base.css" rel="stylesheet"
          type="text/css" />
  </head>
  <body onload="init()">

    <p id='w3c_id'>
      Your browser does not support the W3C DOM and cannot expose the document
      content to its script engine using W3C technologies.
    </p>
  </body>
</html>
