dom/xbl/crashtests/895805-1.xhtml

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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