4 https://bugzilla.mozilla.org/show_bug.cgi?id=585745
7 <title>Test for Bug
585745</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=585745">Mozilla Bug
585745</a>
14 <div id=
"content" style=
"display: none">
18 <script type=
"application/javascript">
20 /** Test for Bug
585745 **/
22 var a = document.createElementNS(
"http://www.w3.org/1998/Math/MathML", 'mrow');
23 var b = document.createElementNS(
"http://www.w3.org/1999/xhtml", 'span');
24 var htmlProto = Object.getPrototypeOf(b);
25 var mathMLProto = Object.getPrototypeOf(a);
26 // XXXbz once bug
560072 is fixed, we should be able to use
27 // getOwnPropertyDescriptor here.
28 Object.defineProperty(mathMLProto,
"style", {
29 get: htmlProto.__lookupGetter__(
"style"),
39 "Getting .style off a mathml element should throw in this case");