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

Side by Side Diff: LayoutTests/fast/parser/foster-parent-adopted.html

Issue 12088052: Merge 140101 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/fast/parser/foster-parent-adopted-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <p>This tests that when nodes are foster-parented after being adopted into another document, 4 <p>This tests that when nodes are foster-parented after being adopted into another document,
5 they are adopted back into the ownerDocument of their foster parent. < /p> 5 they are adopted back into the ownerDocument of their foster parent. < /p>
6 <table> 6 <table>
7 <tr> 7 <tr>
8 <script> 8 <script>
9 if (window.testRunner) 9 if (window.testRunner)
10 testRunner.dumpAsText(); 10 testRunner.dumpAsText();
11 11
12 var tr = document.querySelector('tr'); 12 var tr = document.querySelector('tr');
13 var doc = document.implementation.createHTMLDocument(); 13 var doc = document.implementation.createHTMLDocument();
14 doc.adoptNode(tr); 14 doc.adoptNode(tr);
15 </script> 15 </script>
16 <div></div> 16 <div></div>
17 </tr> 17 </tr>
18 </table> 18 </table>
19 <script> 19 <script>
20 var div = document.querySelector('div'); 20 var div = document.querySelector('div');
21 if (div.ownerDocument === div.parentNode.ownerDocument) 21 if (div.ownerDocument === div.parentNode.ownerDocument)
22 document.body.appendChild(document.createTextNode('PASS.')); 22 document.body.appendChild(document.createTextNode('PASS.'));
23 </script> 23 </script>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/parser/foster-parent-adopted-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698