Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / adopt-attribute-crash.svg
blob9aaa8f02a55eab339d18a015fc6c5c1ebe476d25
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <svg xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xlink="http://www.w3.org/1999/xlink">
3 <linearGradient xl:href="#tCF2" xlink:href="resources/smiley.png"></linearGradient>
4 </svg>
5 <script>
6 if (window.layoutTestController)
7 layoutTestController.dumpAsText();
9 var element = document.querySelector('linearGradient');
10 var attr1 = element.attributes[0];
11 var attr2 = element.attributes[1];
12 var doc2 = document.implementation.createHTMLDocument('Doc 2');
13 var attr3 = doc2.adoptNode(attr2);
14 var doc3 = document.implementation.createHTMLDocument('Doc 3');
15 var attr4 = doc3.adoptNode(attr3);
16 </script>