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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/parser/execute-script-during-adoption-agency-removal.html
diff --git a/LayoutTests/fast/parser/execute-script-during-adoption-agency-removal.html b/LayoutTests/fast/parser/execute-script-during-adoption-agency-removal.html
new file mode 100644
index 0000000000000000000000000000000000000000..2c0df9020e3884c1dfa771ccde194d6f218965a5
--- /dev/null
+++ b/LayoutTests/fast/parser/execute-script-during-adoption-agency-removal.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<script id="firstScript" type="invalid">
+ // When this script runs p.parentNode == null because we're in the middle of
+ // an HTMLConstructionSite::insert() task from the adoption agency.
+ s.appendChild(p);
+</script>
+<b>
+ <p id="paragraph">
+ <script>
+ p = document.getElementById("paragraph");
+ s = document.getElementById("firstScript");
+ s.appendChild(p);
+ s.type = "";
+ </script>
+ <!-- End tag omitted for implicit close -->
+</b>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ p.remove();
+ var p = document.querySelector("p");
+ if (p) {
+ document.body.textContent = "FAIL, " + p.tagName + " has parentNode = " + p.parentNode;
+ } else {
+ document.body.textContent = "PASS";
+ }
+</script>
« 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