Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
1 <!DOCTYPE html>
2 <body onload="f()">
3 <p>
4 <style scoped>
5 p { color: green }
6 </style>
7 First
8 </p>
9 <p>Second</p>
10 <script>
11 function f() {
12 var style = document.getElementsByTagName("style")[0];
13 var p = document.getElementsByTagName("p")[1];
14 p.appendChild(style);
15 }
16 </script>
17 </body>