<html xmlns="http://www.w3.org/1999/xhtml">
 <title>html:style element contents parsing: 007</title>
 <style>
  p { background:red }
  <script> window.onload = function(){ document.getElementsByTagName('p')[0].style.background = "lime" } </script>
 </style>
 <p>This line should have a green background.</p>
</html>