2007-03-19 Mitz Pettel <mitz@webkit.org>
[WebKit-https.git] / LayoutTests / fast / innerHTML / additional-inline-style.html
1 <html>
2 <head>
3     <title></title>
4     <style>
5         span { color: blue; }
6     </style>
7     <script>
8         function test()
9         {
10             if (window.layoutTestController)
11                 layoutTestController.dumpAsText();
12
13             var result = document.getElementById("result");
14             var target = document.getElementById("target");
15             
16             document.body.offsetTop;
17             result.appendChild(document.createTextNode(target.innerHTML));
18         }
19     </script>
20 </head>
21 <body onload="test()">
22     <p>
23         Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=13091">http://bugs.webkit.org/show_bug.cgi?id=13091</a>
24         REGRESSION (r20075): Wrong text style and pixel break in Apple Store Locator HUD</i>.
25     </p>
26     <p>
27         This tests that <tt>.innerHTML</tt> does not introduce additional inline style.
28     </p>
29     <p>
30         The following markup should not include a <tt>style</tt> attribute:
31     </p>
32     <div id="target"><span></span></div>
33     <pre id="result"></pre>
34 </body>
35 </html>