Old MacDonald had a farm, EIEIO. And on that farm he had some crashtests, EIEIO. With an mlk here and an assert there, here a crash, there a hang, everywhere a big bang. Old MacDonald had a farm, EIEIO.
Old MacDonald had a farm, EIEIO. And on that farm he had some crashtests, EIEIO. With an mlk here and an assert there, here a crash, there a hang, everywhere a big bang. Old MacDonald had a farm, EIEIO.
new file mode 100644
--- /dev/null
+++ b/layout/forms/crashtests/366537-1.xhtml
@@ -0,0 +1,32 @@
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
+
+<head>
+<script>
+
+function boom()
+{
+ var fieldset = document.getElementById("fieldset");
+ var h3 = document.getElementById("h3");
+ var legend = document.getElementById("legend");
+
+ fieldset.appendChild(legend);
+ fieldset.appendChild(h3);
+
+ document.documentElement.removeAttribute("class");
+}
+
+</script>
+</head>
+
+
+<body onload="setTimeout(boom, 30);">
+
+<legend id="legend">legend</legend>
+
+<h3 id="h3">H3</h3>
+
+<select><option>option<fieldset id="fieldset"></fieldset></option></select>
+
+</body>
+
+</html>
--- a/layout/forms/crashtests/crashtests.list
+++ b/layout/forms/crashtests/crashtests.list
@@ -1,8 +1,9 @@
load 310426-1.xhtml
load 310520-1.xhtml
load 315752-1.xhtml
load 323499-1.html
load 363696-1.xul
load 363696-2.html
load 363696-3.html
+load 366537-1.xhtml
load 370940-1.html