mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
18 lines
330 B
HTML
18 lines
330 B
HTML
|
<!DOCTYPE html>
|
||
|
<body onload="f()">
|
||
|
<p>
|
||
|
<style scoped>
|
||
|
p { color: green }
|
||
|
</style>
|
||
|
First
|
||
|
</p>
|
||
|
<p>Second</p>
|
||
|
<script>
|
||
|
function f() {
|
||
|
var style = document.getElementsByTagName("style")[0];
|
||
|
var p = document.getElementsByTagName("p")[1];
|
||
|
p.appendChild(style);
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|