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

Side by Side Diff: LayoutTests/fast/parser/execute-script-during-adoption-agency-removal.html

Issue 1117973003: parserInsertBefore and parserRemoveChild should check newChild for a parent. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update comment. Created 5 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/parser/execute-script-during-adoption-agency-removal-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
(Empty)
1 <!DOCTYPE html>
2 <script id="firstScript" type="invalid">
3 // When this script runs p.parentNode == null because we're in the middle of
4 // an HTMLConstructionSite::insert() task from the adoption agency.
5 s.appendChild(p);
6 </script>
7 <b>
8 <p id="paragraph">
9 <script>
10 p = document.getElementById("paragraph");
11 s = document.getElementById("firstScript");
12 s.appendChild(p);
13 s.type = "";
14 </script>
15 <!-- End tag omitted for implicit close -->
16 </b>
17 <script>
18 if (window.testRunner)
19 testRunner.dumpAsText();
20 p.remove();
21 var p = document.querySelector("p");
22 if (p) {
23 document.body.textContent = "FAIL, " + p.tagName + " has parentNode = " + p.parentNode;
24 } else {
25 document.body.textContent = "PASS";
26 }
27 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/parser/execute-script-during-adoption-agency-removal-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698