1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html><head>
3 <link rel="reference" href="block-in-inline-insert-002-ref.xht">
4 <title>CSS Test: blocks inside inlines – insert-into-split-inline-2e</title>
5 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
6 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level">
8 <meta name="flags" content="dom">
9 <script type="text/javascript">
10 function doit() {
11 var newNode = document.createElement("div");
12 newNode.appendChild(document.createTextNode("Five"));
13 document.getElementById("target")
14 .insertBefore(newNode, document.getElementById("insertion"));
15 }
16 </script>
17 <style type="text/css">
18 body > span { border: 3px solid blue }
19 </style>
20 </head>
21 <body onload="doit()">
22 <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><span id="insertion">Six</span><div>Seven</div><div>Eight</div></span>
23
24
25 </body></html>