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

Side by Side Diff: LayoutTests/fast/dom/Element/normalize-crash.html

Issue 1158433004: Remove Attr child nodes (making Attr a Node, not a ContainerNode) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address feedback Created 5 years, 6 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
(Empty)
1 <p>This test passes if it does not crash.</p>
2 <div id="test1"></div>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
6
7 var elem = document.getElementById("test1");
8
9 function go()
10 {
11 var str = "c";
12 for (var i = 0; i < 0x10000; i++)
13 var b = str + str;
14 }
15
16 function handler()
17 {
18 elem.removeAttribute("b");
19 go();
20 }
21
22 elem.setAttribute("b", "a");
23 elem.attributes[0].appendChild(document.createTextNode("hi"));
24 elem.attributes[0].addEventListener("DOMSubtreeModified", handler, false);
25 elem.normalize();
26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698