1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/xbl/crashtests/277523-1.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<?xml version="1.0"?> 1.5 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 1.6 + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 1.7 +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xbl="http://www.mozilla.org/xbl"> 1.8 +<head> 1.9 +<title>Testcase bug 277208 - appendChild to a hidden box from a binding crashes</title> 1.10 + 1.11 +<xbl:bindings><xbl:binding id="crash"><xbl:content> 1.12 +<span style="display:none"><xbl:children includes="span"/></span> 1.13 +</xbl:content></xbl:binding></xbl:bindings> 1.14 + 1.15 +<style type="text/css"> 1.16 +#test{-moz-binding:url(#crash);} 1.17 +</style> 1.18 +</head> 1.19 +<body onload="init()"> 1.20 +<span id="test"></span> 1.21 +<script> 1.22 +function init(){ 1.23 + document.getElementById('test').appendChild(document.createElement('span')); 1.24 +} 1.25 +</script> 1.26 +</body> 1.27 +</html>