dom/xbl/crashtests/895805-1.xhtml

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:bc33cfcd1516
1 <?xml version="1.0" encoding="utf-8"?>
2 <html xmlns="http://www.w3.org/1999/xhtml"
3 xmlns:xbl="http://www.mozilla.org/xbl">
4 <head>
5 <title>Bug 895805 - Adopting bound element to another document.</title>
6 <xbl:bindings>
7 <xbl:binding id="crash">
8 <xbl:content>
9 <xbl:children />
10 Bug 895805 dummy binding
11 </xbl:content>
12 </xbl:binding>
13 </xbl:bindings>
14 <style type="text/css">
15 #test {
16 -moz-binding:url(#crash);
17 }
18 </style>
19 </head>
20 <body onload="init()">
21 <span id="test">Test</span>
22 <script>
23 function init() {
24 var boundElement = document.getElementById('test');
25 var otherDoc = document.implementation.createDocument('', '', null);
26 otherDoc.adoptNode(boundElement);
27 }
28 </script>
29 </body>
30 </html>

mercurial