95590f42d664ae01d8b41bf5d1f476ce566af167
[WebKit.git] / LayoutTests / fast / replaced / object-param-url-control-char.html
1 <html>
2     <head>
3         <script>
4             if (window.layoutTestController) {
5                 layoutTestController.dumpAsText();
6                 layoutTestController.waitUntilDone();
7             }
8             document.addEventListener("beforeload", function(event) {
9                 var console = document.getElementById("console");
10
11                 if (event.url == "scheme://url-with-control-char/")
12                     console.innerHTML = "PASS";
13                 else
14                     console.innerHTML = "FAIL";
15
16                 event.preventDefault();
17  
18                 if (window.layoutTestController)
19                     layoutTestController.notifyDone();
20             }, true);
21         </script>
22     </head>
23     <body>
24         <object width="0" height="0">
25             <param name="movie" value=" \1c  uRl('scheme://url-with-\ 5control-char/') \1e ">
26         </object>
27         <p>This test verifies that a URL specified in a &lt;param&gt; of an &lt;object&gt; is parsed the same as if it was specified as the data attribute of the &lt;object&gt;. Specifically, this verifies that control characters and leading/trailing whitespace are stripped, and that a resource surrounded with url('') is understood.</p>
28         <div id="console"></div>
29     </body>
30 </html>