<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>InnerHTML 1</title>
<meta http-equiv="Content-Type" content="text/xml; charset=utf-8" />
<style type="text/css" media="screen">
p:first-child {
	color: green;
}

span[class="fail"] {
	color: red;
}

</style>

<script type="text/javascript">
<![CDATA[

window.onload = function () {
	var p = document.createElement("p");
	var parent = document.getElementsByTagName("body")[0];
	p.innerHTML = "<span class='fail'>Fail</span>";
	parent.appendChild(p);
};
]]>

</script>

</head>

<body>

<p>You should see only this text.</p>

</body>
</html>

