Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Side by Side Diff: LayoutTests/fast/dom/HTMLLinkElement/prefetch-detached.html

Issue 22875013: Make several DOMImplementation API arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix createDocument() args Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <body> 1 <body>
2 <script> 2 <script>
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 </script> 5 </script>
6 <html> 6 <html>
7 <p>This test passes if it doesn't crash.</p> 7 <p>This test passes if it doesn't crash.</p>
8 <div id="frag"></div> 8 <div id="frag"></div>
9 <script> 9 <script>
10 // Fun with innerHTML. 10 // Fun with innerHTML.
11 document.getElementById('frag').innerHTML = '<link href="prefetch.link" rel="pre fetch">'; 11 document.getElementById('frag').innerHTML = '<link href="prefetch.link" rel="pre fetch">';
12 12
13 // Fun with detached documents. 13 // Fun with detached documents.
14 var doc = document.implementation.createDocument('application/html+xml'); 14 var doc = document.implementation.createDocument('application/html+xml', 'html') ;
15 var lnk = doc.createElement('link'); 15 var lnk = doc.createElement('link');
16 lnk.setAttribute('rel', 'prefetch'); 16 lnk.setAttribute('rel', 'prefetch');
17 lnk.setAttribute('href', 'prefetch.link'); 17 lnk.setAttribute('href', 'prefetch.link');
18 doc.documentElement.appendChild(lnk); 18 doc.documentElement.appendChild(lnk);
19 </script> 19 </script>
20 </html> 20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698