diff options
author | Steve Block <steveblock@google.com> | 2011-05-20 16:21:44 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-05-24 14:11:39 +0100 |
commit | abd0b16f66097fb5317221db993dafb6bd965965 (patch) | |
tree | 35a99efae402a25abc6b82c3959d958b952ec6bb /LayoutTests/fast/dom/HTMLLinkElement/prefetch-detached.html | |
parent | 10b539940b83c9b7ea6a6ebcf8707d9841b4284f (diff) | |
download | external_webkit-abd0b16f66097fb5317221db993dafb6bd965965.zip external_webkit-abd0b16f66097fb5317221db993dafb6bd965965.tar.gz external_webkit-abd0b16f66097fb5317221db993dafb6bd965965.tar.bz2 |
Add LayoutTests/fast/dom/HTMLLinkElement at r76408
Bug: 2268353
Change-Id: I3c351413cb223af72621b9b9f0336fc66a3d4fbc
Diffstat (limited to 'LayoutTests/fast/dom/HTMLLinkElement/prefetch-detached.html')
-rw-r--r-- | LayoutTests/fast/dom/HTMLLinkElement/prefetch-detached.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/HTMLLinkElement/prefetch-detached.html b/LayoutTests/fast/dom/HTMLLinkElement/prefetch-detached.html new file mode 100644 index 0000000..2d5d76c --- /dev/null +++ b/LayoutTests/fast/dom/HTMLLinkElement/prefetch-detached.html @@ -0,0 +1,20 @@ +<body> +<script> +if (window.layoutTestController) + layoutTestController.dumpAsText(); +</script> +<html> +<p>This test passes if it doesn't crash.</p> +<div id="frag"></div> +<script> +// Fun with innerHTML. +document.getElementById('frag').innerHTML = '<link href="prefetch.link" rel="prefetch">'; + +// Fun with detached documents. +var doc = document.implementation.createDocument('application/html+xml'); +var lnk = doc.createElement('link'); +lnk.setAttribute('rel', 'prefetch'); +lnk.setAttribute('href', 'prefetch.link'); +doc.documentElement.appendChild(lnk); +</script> +</html> |