Bug 911864 - Frob the marquee in a different fashion. r=me, a=bajaj
authorBobby Holley <bobbyholley@gmail.com>
Fri, 01 Nov 2013 15:31:56 +0100
changeset 161297 5d4bce7354108984783f904f557dd1bb1f7c4069
parent 161296 264163f1b1bce4e41586d2e9631209236b920a5e
child 161298 1a11cd391d5c2c2addeac3ece74a325379ba9655
push id4600
push userryanvm@gmail.com
push dateTue, 12 Nov 2013 17:09:20 +0000
treeherdermozilla-aurora@9e1c21d8987c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, bajaj
bugs911864
milestone27.0a2
Bug 911864 - Frob the marquee in a different fashion. r=me, a=bajaj
content/base/test/test_bug840098.html
--- a/content/base/test/test_bug840098.html
+++ b/content/base/test/test_bug840098.html
@@ -15,17 +15,19 @@ https://bugzilla.mozilla.org/show_bug.cg
 <div id="content" style="display: none">
   <div id="foo"></div>
 </div>
 <marquee id="m">Hello</marquee>
 <pre id="test">
 <script type="application/javascript">
 
 /** Test for Bug 840098 **/
-var anonymousNode = document.getElementById("m").outerDiv;
+
+var mar = document.getElementById("m");
+var anonymousNode = SpecialPowers.unwrap(SpecialPowers.wrap(document).getAnonymousNodes(mar)[0]);
 try {
   document.implementation.createDocument("", "", null).adoptNode(anonymousNode);
   ok(false, "shouldn't be able to adopt the root of an anonymous subtree");
 } catch (e) {
   is(e.name, "NotSupportedError", "threw the correct type of error");
 }
 
 </script>