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

Side by Side Diff: LayoutTests/fast/dom/Range/create-contextual-fragment-from-xhtml-document-range.xhtml

Issue 115693010: Fix Range.createContextualFragment for non-Element contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Handle SVG elements. Created 7 years 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
OLDNEW
(Empty)
1 <?xml version="1.0"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>createContextualFragment from XHTML Document range.</title>
6 </head>
7 <body>
8 <p>Test of createContextualFragment from a Range whose context is an XHTML docum ent. If the test succeeds you will see the word "PASS" below.</p>
9 <p id="result"></p>
10 <script>
11 if (window.testRunner)
12 testRunner.dumpAsText();
13
14 var range = document.createRange();
15 var fragment = range.createContextualFragment('&lt;p id="frag">Inserted fragment &lt;/p>');
16 document.body.appendChild(fragment);
17 var p = document.getElementById('frag');
18
19 var result = document.getElementById('result');
20 result.textContent = (p &amp;&amp; p.parentElement === document.body) ? 'PASS' : 'FAIL';
21 </script>
22 </body>
23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698