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-whitespace-001-ref.xht">
4 <title>CSS Test: blocks inside inlines – whitespace-present-1b</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 <style type="text/css">
10 body > span { border: 3px solid blue }
11 </style>
12 <script type="text/javascript">
13 function doIt() {
14 var t = document.createTextNode(" ");
15 var d = document.getElementById("d");
16 d.parentNode.insertBefore(t, d);
17 }
18 </script>
19 </head>
20 <body onload="doIt()">
21 <span>
22 <div>One</div><div id="d">Two</div>
23 </span>
24
25
26 </body></html>