<?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>Prototype 1</title>
<meta http-equiv="Content-Type" content="text/xml; charset=utf-8" />
<style type="text/css" media="screen">
p {
	color: red
}

p[class="test"] {
	color: green;
}
</style>
<script type="text/javascript" src="js/prototype.js"></script>

<script type="text/javascript">
<![CDATA[

window.onload = function () {
	var test = $("test");
	test.setAttribute("class", "test");
}


]]>

</script>

</head>

<body>
<p id="test">This should be green.</p>


</body>
</html>

