summaryrefslogtreecommitdiffstats
path: root/layout/mathml/crashtests/477740-1.xhtml
diff options
context:
space:
mode:
Diffstat (limited to 'layout/mathml/crashtests/477740-1.xhtml')
-rw-r--r--layout/mathml/crashtests/477740-1.xhtml25
1 files changed, 25 insertions, 0 deletions
diff --git a/layout/mathml/crashtests/477740-1.xhtml b/layout/mathml/crashtests/477740-1.xhtml
new file mode 100644
index 000000000..b3e9c133c
--- /dev/null
+++ b/layout/mathml/crashtests/477740-1.xhtml
@@ -0,0 +1,25 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xbl="http://www.mozilla.org/xbl" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:math="http://www.w3.org/1998/Math/MathML">
+<head>
+
+<xbl:bindings><xbl:binding id="res"><xbl:content><xul:resizer><xbl:children/></xul:resizer></xbl:content></xbl:binding></xbl:bindings>
+
+<script type="text/javascript">
+
+function boom()
+{
+ var x = document.getElementById("x");
+
+ var r = document.createRange();
+ r.setEnd(x, 1);
+ r.extractContents();
+
+ x.appendChild(document.createElement('span'));
+}
+
+</script>
+</head>
+
+<body onload="boom();">
+<xul:rows id="x" style="-moz-binding: url(#res);"><math:ms/></xul:rows>
+</body>
+</html>