Reviewed by Chris Blumenberg.
[WebKit-https.git] / LayoutTests / fast / dom / importNodeHTML.html
1 <html>
2     <head>
3             <title>importNode</title>
4     </head>
5     <body>
6             <div id="container">
7                     <p>This is a simple test of both importNode and cloneNode, created from an example that demonstrated a bug in importNode.</p>
8                     <div style="background: yellow;">The original node:</div>
9                     <div id="original" style="background: #7F7FFF; padding: 3px">Outer bit<div style="color: yellow; background: blue; margin: 3px;">Inner bit.</div></div>
10                     <div style="background: yellow;">Copied with importNode():</div>
11                     <div id="cloneTitle" style="background: yellow;">Copied with cloneNode():</div>
12                     <script type="text/javascript">
13                         document.getElementById('container').insertBefore(document.importNode(document.getElementById('original'), true), document.getElementById('cloneTitle'));
14                         document.getElementById('container').appendChild(document.getElementById('original').cloneNode(true));
15                     </script>
16             </div>
17     </body>
18 </html>
19