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

Side by Side Diff: LayoutTests/fast/dom/normalize-attributes-mutation-event-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 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9
10 description("Tests that mutating an elements attribute map during DOMSubtreeModi fied event dispatch doesn't break Node.normalize. Passes if it doesn't crash.");
11
12 var el = document.createElement('div')
13 el.setAttribute('a', 'a')
14 el.setAttribute('b', 'b')
15 el.attributes[1].appendChild(document.createTextNode(''))
16 el.attributes[1].addEventListener('DOMSubtreeModified', function() { el.removeAt tribute('b') }, false)
17 el.normalize()
18
19 </script>
20 </body>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698